I have this MySQL query...
$sql2= "INSERT INTO $tbl_name(question_id, a_id, a_name, a_email, a_answer, a_datetime) VALUES('$id', '$Max_id', '$a_name', '$a_email', '$a_answer', '$datetime')";
$result2=mysql_query($sql2, $dbLink);
It won't let me use a ' or a \ in a string. $result2 will return nothing if I do. Can anyone explain to me how I can insert strings with these in them?