Ok. I have the following query…
sendreport = mysql_query("INSERT INTO reported (site,user, desc) VALUES ('$reportid','".$_SESSION["uid"]."','".$_POST["desc"]."');",$conn);
if(!$sendreport){
die("Invalid query: ".mysql_error());
}
And I get the 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 ‘desc) VALUES (‘4’,‘1’,‘adsdssd’)’ at line 1
I checked all the column names like 40 times, nothing wrong there. The columns “site”, and “user” are INTS, but I dont know if that has anything to do with it.
Thanks,
-Naaman