Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

rand in codeigniter

$this->db->select('name');
$query = $this->db->get('table');
$shuffled_query = $query->result_array();
shuffle ($shuffled_query);

foreach ($shuffled_query as $row) {
    echo $row['name'] . '<br />';
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rand #codeigniter
ADD COMMENT
Topic
Name
1+4 =