// stripslash function, add correct number of slashes depending on quotes_gpc
function addslash($text) {
[color=red] if( function_exists( "mysql_real_escape_string" ) ){
$text = mysql_real_escape_string($text);[/color]
} else {
if (!QUOTES_GPC) {//php < 4.3.0 use addslashes
$text = addslashes(addslashes($text));
} else {
$text = addslashes($text);
}
}
return $text;
}
Category Forum
Bugs and Errors - 6Labels
None yet
Statistics
0 participants
Notifications
You are not receiving notifications from this thread.
Related Questions