I am using in array in where conditions of Codeigniter.
But here I am not getting the exact result what I need actually ,here in where condition some slashes are adding . Below is my code
$comma_separated= implode("','", $ids); // here i am getting ids
$this->db->select("car_id");
$this->db->where_in('car_id',array(stripslashes($comma_separated)));
$query_second = $this->db->get_where("car_booking");
My last query is
SELECT `car_id`
FROM `car_booking`
WHERE `car_id` IN('123\',\'14781')
Here stripslahses is not working in the where conditions .
Any suggestion ,thank you ...