Tunacha Posted September 28, 2010 Share Posted September 28, 2010 Well what im trying to do is grab a random page title on refresh of the page, and so far what i have is public function getTitle() { $rset = $this->mysql->select('slogan',"titles","","RAND()","1"); while ($r=mysql_fetch_array($rset)){ echo $r['slogan']; } } But i cant figure out why it isnt grabbing a random value oin page refresh, it just keeps grabbing the same one, could anyone explain what im doing wrong? Link to comment https://forums.phpfreaks.com/topic/214573-help-with-grabbing-random-on-refresh/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.