Jump to content

Sort by...


coolphpdude

Recommended Posts

$message_result = mysql_query("SELECT * FROM usermessages WHERE user_id='$user_session_id' ORDER BY date AND time", $db); ???

 

 

Change the "AND" between the date and time to a comma (,) as per below:

 

$message_result = mysql_query("SELECT * FROM usermessages WHERE user_id='$user_session_id' ORDER BY date, time", $db);

Link to comment
https://forums.phpfreaks.com/topic/98972-sort-by/#findComment-506435
Share on other sites

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.