Jump to content

timestamp not sorting


kalster

Recommended Posts

this code does not sort by timestamp and i need to know why this is not working.

$sql = "SELECT * FROM test WHERE y='$y' AND z='$z' ORDER BY timestamp DESC";

 

this code does sort by timestamp.

$sql = "SELECT * FROM test WHERE y='$y' ORDER BY timestamp DESC";

 

`timestamp`    INT(12) NOT NULL,

 

i am using the near resent version of mysql.

 

Link to comment
https://forums.phpfreaks.com/topic/287683-timestamp-not-sorting/
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.