Welcome Guest, Not a member yet? Register   Sign In
Does code igniter auto escape db data?
#2

[eluser]tonanbarbarian[/eluser]
If you are using active record to build the query then No you do not have to escape strings
If you are building your query yourself then yes you do need to escape string
CI provides a method in the database class to do the escaping for you
Code:
$this->db->escape($something);


Messages In This Thread
Does code igniter auto escape db data? - by El Forum - 04-13-2011, 02:45 PM
Does code igniter auto escape db data? - by El Forum - 04-13-2011, 03:52 PM
Does code igniter auto escape db data? - by El Forum - 04-13-2011, 03:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB