Jump to content

time of day sorting problem please help!!!!!!


shooff2332

Recommended Posts

I have a website for a court where people can go online and check when their court appearance is for the date selected.  Everything works smooth in that aspect.  The problem that I have is that if the person has a appearance time of 1200pm or 1230pm it displays at the bottom of the page as the last time, where it should be displayed in order of time i.e. 10am,11am,12pm,1pm where currently it displays 3pm,4pm,5pm,12pm,1230pm.  I have the data sorted in descending order from the morning to the afternoon when they select the date they are trying to display.  Just wondering if there is a time function I am supposed to use or something I am supposed to change in the .ini file.  I can post a link to the website if that helps.  Thanks for any and all help.

Link to comment
https://forums.phpfreaks.com/topic/96169-time-of-day-sorting-problem-please-help/
Share on other sites

since int and char are seperated, i wud guess it wud be yer merging or sorting algorithm

 

i wud either make it 24 hr designation (am/pm extracted from the time instead)

 

this cud save a lot of time than switching everything over to timestamps

 

but timestamps wud provide better flexibility when doing sql searches

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.