Forum Moderators: coopster
$q2 = "insert into mail(from, to, subject, body, tStatus, fStatus, sent) VALUES ('$member', '$to, '$subject', '$body', '$one', '$one', now());";
$rs = mysql_query($q2) or die ("Could not execute query : $q2." . mysql_error());
Here is the error code I am getting:
Could not execute query : insert into chess_mail (from, to, subject, body, tStatus, fStatus, sent) VALUES ('Joe', 'Fred', 'Hello', 'How are you', '1', '1', now());. 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 'from, to, subject, body, tStatus, fStatus, sent) VALUES ('Joe', 'Fred', 'Hel' at line 1
I'd try changing the col name and going from there.
I usually use something like:
toName forName, etc.
[edited by: TheMadScientist at 1:39 am (utc) on Oct. 29, 2009]