Welcome Guest, Not a member yet? Register   Sign In
Strange Happenings
#1

[eluser]james182[/eluser]
Has anyone had this happen to them.

backslashes get added in, how to get rid of them?

Code:
SELECT * FROM (`DB_TABLE`) WHERE `colour` IN ('\'D\','\'E\',\'F\'')
#2

[eluser]InsiteFX[/eluser]
Did you try Active Record?
Code:
$colour = array('D', 'E', 'F');
$this->db->where_in('colour', $colour);
$query = $this->db->get('DB_TABLE');
echo $this->db->last_query();




Theme © iAndrew 2016 - Forum software by © MyBB