Hi.
I'm wondering whether with mysqli_real_escape_string I've to
check the get_magic_quotes_gpc() value .
I mean a think like this:
function quote_smart($value)
{
// Stripslashes
if (get_magic_quotes_gpc()) {
$value = stripslashes($value);
}
// Quote if not a number or a numeric string
if (!is_numeric($value)) {
$value = "'" . mysql_real_escape_string($value) . "'";
}
return $value;
}
Bye.