Is there any function in codeigniter similar to
mysql_real_escape_string()
I have tried $this->db->escape()
but no luck
below code works
$surname = mysql_real_escape_string($request['3']); // O'relley-max
but other CI method not working any suggestion. I need to know what CI method escaping string for a variable
I know if you use validation rules xss_clean
it workes but i don't want to apply rules