View Full Version : php wiev from today to latest posts
auriaks
11-21-2009, 06:19 PM
How I need to change this:
mysql_query("SELECT * FROM reg_users ORDER BY `date` LIMIT 15")
to show latest replies from today written to latest??
Schmoopy
11-21-2009, 06:36 PM
mysql_query("SELECT * FROM reg_users ORDER BY `date` DESC LIMIT 15")
Should do the trick.
auriaks
12-03-2009, 11:04 AM
$queryget = mysql_query("SELECT * FROM forum_ans ORDER BY `date` AND `time` DESC LIMIT 6") or die("Error with query");
Im using this... Not working.
Maybe other options?
Schmoopy
12-03-2009, 02:47 PM
Change to:
$queryget = mysql_query("SELECT * FROM forum_ans ORDER BY `date`,`time` DESC LIMIT 6") or die("Error with query");
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.