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
// 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.

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)