If you are using PHP 5.4, the mysql_escape_string () function is deprecated. Therefore, you need to make some changes to the mysql driver file. Go to the system \ database \ drivers \ mysql \ mysql_driver.php and find the escape_str function and replace the function code with this code:
public function escape_str($str, $like = FALSE) { if (is_array($str)) { foreach ($str as $key => $val) { $str[$key] = $this->escape_str($val, $like); } return $str; } $str = is_resource($this->conn_id) ? mysql_real_escape_string($str, $this->conn_id) : addslashes($str);
It can help you ...
source share