Forum Moderators: coopster

Message Too Old, No Replies

mysql_query() function help

         

electricocean

9:18 pm on Feb 20, 2005 (gmt 0)

10+ Year Member




$posting=mysql_query("select * from news where firstname like 'eli'");

how would I change the mysql_query() function to select the 10 news entries from newest to oldsest?

coopster

9:57 pm on Feb 20, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



SELECT * FROM news ORDER BY mydatefield DESC LIMIT 10;