Forum Moderators: coopster & phranque

Message Too Old, No Replies

Argggg! Simple syntax killing me!

         

bobnew32

11:26 pm on May 12, 2003 (gmt 0)

10+ Year Member



Ok I know anyone here can tell me what extra word to put in this select statement, b/c when I use, it doesnt order it correctly, it does it from the lowest time stamp! (ie May 2 instead of may 4) and its killing me!

$sql = "SELECT * FROM Television_News ORDER BY time_stamp LIMIT 25 ";

jatar_k

11:28 pm on May 12, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



SELECT * FROM Television_News ORDER BY time_stamp desc LIMIT 25

[mysql.com...]

is that what you mean? ASC ¦ DESC after order by?

bobnew32

11:57 pm on May 12, 2003 (gmt 0)

10+ Year Member



Your a lifesaver! It worked perfectly thx alot, and btw is there somthing wrong with the time in here?

jatar_k

11:58 pm on May 12, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



yes, some kind of date bug, should be worked out over the next day or so. It makes threads a little hard to find for now.