I have a table in my database with adminId and clientId
There might be 20 records with the adminId of the logged in user and I\'m trying to pull a list of clients.>
From the Active Record docs:
$this->db->where_in();
Generates a WHERE field IN ('item', 'item') SQL query joined with AND if appropriate
$names = array('Frank', 'Todd', 'James'); $this->db->where_in('username', $names); // Produces: WHERE username IN ('Frank', 'Todd', 'James')