• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FIND_IN_SET() how to implement in mysql and codeigniter

#7
(08-02-2018, 05:57 AM)jreklund Wrote: userid = 1 have this:
$users->category_id = array(1,2,3)
userid = 2 have this:
$users->category_id = array(1,2,3,4,5,6)

So:
$this->db->where_in('category_id',array(1,2,3))->get('category');

Thank YOu dear
Reply


Messages In This Thread
RE: FIND_IN_SET() how to implement in mysql and codeigniter - by jaydevvara - 08-02-2018, 10:54 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.