CodeIgniter Forums
BUG with escape_like_str - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19)
+--- Thread: BUG with escape_like_str (/showthread.php?tid=64282)



BUG with escape_like_str - motoroller - 02-03-2016

$search = '[email protected]';
echo $this->db->escape_like_str($search);

I got: [email protected]

how to fix it?


RE: BUG with escape_like_str - Narf - 02-03-2016

It's not a bug, the underscore is a special character and needs to be escaped.