vendredi 6 octobre 2023

how to use order_by RAND with my code below in codeigniter

i have this code :

$select = ['account_access_token','account_config_id'];       
$where = ['where'=>['enable_marketing' => '1', 'account_config_id.id!=' => $account_table_id]]; 
$join
=['account_user_info'=>'account_config_id.account_user_info_id=account_user_info.id,left'];       
$pages_info = $this->basic->get_data('account_config_id',$where,$select,$join);

so as you see i want to load an account into my target page

my question is : how to load the $pages_info results randomly ?

i tried to add : RAND(), $order_by='RAND()' but its dosen't work
every time the account id=$id is loaded with no change thanks a lot in Advanced

no luck with search




Aucun commentaire:

Enregistrer un commentaire