function quote_smart($value)
{
if (get_magic_quotes_gpc()) {
$value = stripslashes($value);
}
if (!is_numeric($value)) {
$value = "'" . mysql_real_escape_string($value) . "'";
}
return $value;
}
thanks
Posted 10 October 2006 - 08:16 PM
function quote_smart($value)
{
if (get_magic_quotes_gpc()) {
$value = stripslashes($value);
}
if (!is_numeric($value)) {
$value = "'" . mysql_real_escape_string($value) . "'";
}
return $value;
}
Posted 11 October 2006 - 02:46 AM
Posted 11 October 2006 - 06:26 AM
Posted 11 October 2006 - 06:56 AM
$value = addslashes( stripslashes( $value ) );
Edited by Matthew., 11 October 2006 - 06:57 AM.
Posted 12 October 2006 - 02:58 PM
function quote_smart($value){
if (get_magic_quotes_gpc()){
$value = stripslashes($value);
}
return mysql_real_escape_string($value);
}
Posted 12 October 2006 - 05:01 PM
Edited by dEcade, 12 October 2006 - 05:07 PM.
0 members, 1 guests, 0 anonymous users