06-19-2008, 07:38 PM
|
#3 (permalink)
|
|
The Contributor
Join Date: Mar 2008
Posts: 62
Thanks: 2
|
heres a cleaner one.
Im writing it right here, so no testing.
Code:
//use some way to get the $i; ifs, using the date function, anyway you choose.
$i=rand(1,6)*2;
$mysql=mysql_query("select * from tbl_clone where grp = '.$i.' order by priority");
if(!mysql_query($mysql))
{ die('Could not process request.'); }
|
|
|