Search
 
SCRIPT & CODE EXAMPLE
 

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 />';
}
Comment

PREVIOUS NEXT
Code Example
Php :: PHP substr_replace — Replace text within a portion of a string 
Php :: laravel api error return homepage 
Php :: delete record without a page refresh with ajax in php 
Php :: php loop in js 
Php :: Magento 2 create admin module 
Php :: jquery get data from php 
Php :: php break and continue 
Php :: show date php by letters 
Php :: laravel throw 503 
Php :: creating jobs laravel 
Php :: What was the old name of PHP? 
Php :: socket io laravel 
Php :: php online test 
Php :: how to separate admin and user login in laravel 
Php :: php array_diff_assoc 
Php :: main.php 
Php :: what is route namespace in laravel 
Php :: PHP if...else...elseif Statements 
Php :: ternary operator php 
Php :: php ascii to decimal 
Php :: Code for finding Prime Numbers 
Php :: laravel send data with a redirect 
Php :: different between two dates 
Php :: laravel eloquent batch insert 
Php :: add class to li 
Php :: facetwp listing template archive 
Php :: htaccess rewriterule 
Php :: php get sql update from session 
Php :: remove rank math next prev canonical 
Php :: WP Hero Img 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =