View Single Post
Old 06-19-2008, 07:38 PM   #3 (permalink)
Seraskier
The Contributor
 
Join Date: Mar 2008
Posts: 62
Thanks: 2
Seraskier is on a distinguished road
Default

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.'); }
Send a message via MSN to Seraskier
Seraskier is offline  
Reply With Quote