I tried to use the following code to insert,
$op=$_POST["ans"]; $username=$_GET["username"]; mysql_query("insert into $username values('Q3','$op')") or die(mysql_error());
But I got the following error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'values('Q1','Wrong')' at line 1
Why am I getting this error? How can I fix it?