escape_str in mysql |
[eluser]displaynone[/eluser]
I have been looking for a similar bug, but I don't find it, so I decide to write a new one. When I try to escape a string using escape_str function, I get incorrect results. For example: Code: $query = $this->db->query('insert into table values (?, ?)', array('value1', 'value2 /\/\/\')); Code: insert into table values ('value1', 'value2 /\/\/\') The escape_str function is this: Code: function escape_str($str) Thanks for your time and sorry for my english |
Messages In This Thread |
escape_str in mysql - by El Forum - 09-24-2007, 08:46 AM
escape_str in mysql - by El Forum - 09-24-2007, 09:33 AM
escape_str in mysql - by El Forum - 09-24-2007, 10:42 AM
|