Forum Moderators: coopster
In C-language (Borland version at least) I have to put \" in any string
to print out the quotation mark only.
Reason is that text strings are themselves delimited by quote marks.
Without this device, quote within a string will make the string
terminate early, the rest interpreted as junk. Probably won't compile at all.
Java and other languages are VERY C-like. I would start looking there. - Larry
function magicQuotesRemove(&$array)
{
if(!get_magic_quotes_gpc())
{
return;
}
foreach($array as $key => $elem)
{
if(is_array($elem))
{
magicQuotesRemove($elem);
}
else
{
$array[$key] = stripslashes($elem);
}
}
}magicQuotesRemove($_GET);
magicQuotesRemove($_COOKIE);
magicQuotesRemove($_POST);
But if you use this, be sure to always use mysql_real_escape_string() (or a similar function for your favorite database ) before any database query.