Welcome Guest, Not a member yet? Register   Sign In
Active record manual where clause is not automatically escaped as advertised
#2

[eluser]Matthieu Fauveau[/eluser]
My guess is that it's the intended behavior for the custom string where clauses. Because "custom" implies that you don't want CI to do anything on the string you provide it with.

You could write that to avoid using query binding :

Code:
$like = $this->db->escape("%".$search."%");
[...]
$this->db->where('(desc LIKE '.$like.' OR name LIKE '.$like.')');


Messages In This Thread
Active record manual where clause is not automatically escaped as advertised - by El Forum - 06-20-2008, 11:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB