Welcome Guest, Not a member yet? Register   Sign In
FIND_IN_SET() how to implement in mysql and codeigniter
#6

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');
Reply


Messages In This Thread
RE: FIND_IN_SET() how to implement in mysql and codeigniter - by jreklund - 08-02-2018, 05:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB