You have added an extra )
. You need to remove that.
Use this code
function clean($str) {
$str = @trim($str);
if( get_magic_quotes_gpc() ) {
$str = stripslashes($str);
}
return mysql_real_escape_string($str);
}
You have added an extra )
. You need to remove that.
Use this code
function clean($str) {
$str = @trim($str);
if( get_magic_quotes_gpc() ) {
$str = stripslashes($str);
}
return mysql_real_escape_string($str);
}