Advertisement
rodro1

where from an array with comma from mysql db codigniter

Aug 20th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. //FIND_IN_SET (search string, string list)
  2.  
  3. $where = "FIND_IN_SET('".$cid."', category_id)";
  4. $this->db->where( $where );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement