[eluser]bondjp[/eluser]
Hi guys, i have this problem where i want to do a query using an array but it's not working.
here's my code:
Code:
$usr=implode(',',$usersid);
$this->db->or_where('user_id',$usr);
So $usr is giving me '1,2' and my query stops at 1
if i try
Code:
$usr=array('1','2');
$this->db->or_where('user_id',$usr);
I get the results i'm expecting.
how can i make it work?
Thanks