unl0ad
02-27-2007, 09:50 PM
Ok, im trying to arrange a Mysql query in php by 2+ fields
Lets say i have hour field, day field, month, and year field
I want to arrange by the newest posted to the oldest, heres what i have so far
query="SELECT `id1` FROM `".$mysql_prefix."images` WHERE `ban`!='yes' ORDER BY `day` DESC LIMIT $thumbnaillimit";
thanks in advance
Lets say i have hour field, day field, month, and year field
I want to arrange by the newest posted to the oldest, heres what i have so far
query="SELECT `id1` FROM `".$mysql_prefix."images` WHERE `ban`!='yes' ORDER BY `day` DESC LIMIT $thumbnaillimit";
thanks in advance