first i query the database, this is the result
id_number start_date start_time
CA642997 2007-01-29 03:05:00
CA651167 2007-01-29 03:05:00
CA651038 2007-01-29 19:00:00
CA650995 2007-01-30 19:00:00
CA652568 2007-01-31 01:05:00
CA652880 2007-01-31 01:30:00
CA652884 2007-01-31 06:00:00
CA643602 2007-02-01 00:30:00
CA652881 2007-02-01 01:00:00
i would like to print that out to a web page like this:
2007-01-29
CA642997 03:05:00
CA651167 03:05:00
CA651038 19:00:00
2007-01-30
CA650995 19:00:00
2007-01-31
CA652568 01:05:00
CA652880 01:30:00
CA652884 06:00:00
2007-02-01
CA643602 00:30:00
CA652881 01:00:00
etc...
i think you get the idea. but, i cannot figure out how to do this for some reason. i think i might have brain damage now from thinking too hard. this should be an easy problem, so if anyone can help, thanks in advance.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|