mysql insert
Posted: Sun Jul 08, 2007 7:31 pm
Hey
I have no idea why this isn't working. The insert code is this
This is the error I am getting when I submit
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, url, type, tags, date, author_id) values ('awesome', 'asdffff', 'http://ch' at line 1
Any idea whats wrong?
I have no idea why this isn't working. The insert code is this
Code: Select all
$insert = mysql_query("INSERT into user_subs (title, desc, url, type, tags, date, author_id) values ('$title', '$final', '$url', 'story', '$tags', '$date', {$_SESSION['uid']})") or die(mysql_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, url, type, tags, date, author_id) values ('awesome', 'asdffff', 'http://ch' at line 1
Any idea whats wrong?