Friday, February 10, 2012

Randomize your sql results with sql in Zend Framework

$sql =  $this->db->select()->from(array("i"=>"images"), array("id",'path'))->order("RAND()")->limit(1);

No comments:

Post a Comment