• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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();


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.