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?