Hi,
I'm running PHP 4.2.3 so could anyone tell me why running this function:
function escape_data ($data) {
global $dbc;
if (ini_get('magic_quotes_gpc')) {
$data = stripslashes($data);
}
return mysql_real_escape_string (trim ($data), $dbc); }
gives this error :
Fatal error: Call to undefined function: mysql_real_escape_string()
Thanks
Just found out the function is available in 4.3