I'm making a new question seeing as the other question is inactive and it has changed very much. My db code is this:
$sql2="INSERT INTO $tbl_name(s_id, s_name, s_email, s_content)VALUES('$id', '$s_name', '$s_email', '$s_content')";
$result2=mysql_query($sql2);
if($result2){
echo "Successful<BR>";
}
else {
echo "ERROR";
}
I can input letters numbers, but not ' or " - how can I use mysql_real_escape_string() to fix this? Thanks.