Menu
i got an error when inserting textarea values that contains single quotes to my database.
i used the following to avoid it and still getting errors.
[code=php]
if (!get_magic_quotes_gpc()) {
$s_body = addslashes($_POST[‘body’]);
} else {
$s_body = $_POST[‘body’];
}
even though my get_magic_quotes_gpc() is set to 1 (ON)
Thanks
M