Hello,
I have a table that displays query results and sorts by the user's preference. The time field is currently a 12-hour format. I would like the results to sort chronologically. How do I do this? I can change the field to a 24-hour format, but then how do I format the time to display in the 12-hour format?
And do I put the formatting code in the query section or in the table section? This is the query:
elseif($schedule=='time') {$query = "SELECT * FROM classes ORDER BY '$schedule'";}
and this is the relevant part of the table that will display the results:
while ($row = mysql_fetch_row($result))
{
?>
<tr>
<td align="left">
<?=$row[0]?>
</td>
I would appreciate any help anyone can give.
Thanks,
Lisa