I have a problem with the search data in the database whose value in the search of the array and string.
table (profile):
ID Name status
1 Joe. Free
2 Bill. Not free
code:
$id = array('1', '2');
$query = $this->db->query("SELECT * FROM profile WHERE id = array and status='free' ");
I want check element of array and string (status) 1by1, if get one who does not fit then it will return false. how the trick ? thanks