Menu
Okay, now I’m using INSERT INTO to, guess what?, insert data into my table. But it keeps throwing me errors about syntax, which I just can’t seem to find. Maybe it’s my eyes, so I ask of you, what do you see wrong with the following?
[code=php]
require(“db_connect.php”);
$add=”INSERT INTO comment_mssgs (id, sdate, subject, author, message, views, mt, tid, to) VALUES (”, ‘$cdate’, ‘$subj’, ‘$s_username’, ‘$mssg’, ‘0’, ‘1’, ”, ‘1’)”;
mysql_query($add) or die(“Error: ” . mysql_error());
Any help appreciated…