Welcome Guest, Not a member yet? Register   Sign In
How can I get active records NOT to add single quotes to int values?
#2

[eluser]boltsabre[/eluser]
Try sending it with the third WHERE paramter FALSE to disable automatic escaping by active records. Search the page below for:
$this->db->where();
to see the documentation
http://ellislab.com/codeigniter/user-gui...ecord.html

Also see the second answer here, using get_where
http://stackoverflow.com/questions/14548...ause-value

Something like:
Code:
$this->db->where('class', $data, FALSE);

Let us know how it goes, and mark this post as answered if it works. Thanks!


Messages In This Thread
How can I get active records NOT to add single quotes to int values? - by El Forum - 05-21-2013, 06:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB