this is a sql statment, but i guess you know that
Code: Select all
$sql = "INSERT INTO q_comments (section, title,name,email,comment,script_id,date) VALUES ('$sec', '$com_title', '$user10', '$email1', "$comments", '$s_id', '$date')";so i used $comments = addslashes($comments); to add \ to "
so now if some one uses " in $comments i get alot of \\\.
how can i fix this so it can take " and ' without any \
lol, i just find it funny for some reason