Still getting error "Fatal error: Call to undefined fun

Im still recieving this error
Fatal error: Call to undefined function: mysql_real_escape_string()
in mysql_connect.php on line 41

here is the code
[php]
// Function for escaping and trimming form data.
function escape_data ($data) {
global $dbc;
if (ini_get(‘magic_quotes_gpc’)) {
$data = stripslashes($data);
}
return mysql_real_escape_string (trim ($data), $dbc);
}// End of escape_data() function.
?>
[/php]

Anyone have any ideas on why i would be getting this error?

Is your version of PHP high enough? You need at least version 4.3.

(PHP 4 >= 4.3.0, PHP 5)
Sponsor our Newsletter | Privacy Policy | Terms of Service