How can I change the order by time either in MySQL or in the While Loop?
I have a query like
`"SELECT `start-time` from `table_name`"`
and my start-time will be in format 02:00pm, 02:00am, 05:00am, in likewise. If that's just number without am/pm I can use order by.
Or, if the above way not possible, can I use PHP to order the start time in while loop?
I am using the following way to retrieve the data
$doquery = mysql_query("SELECT `start-time` FROM `table_name`");
while($fetch_query = mysql_fetch_array($doquery)){
echo $fetch_query['start-time'];
}
Thanks