"Syntax error in INSERT INTO statement"
My SQL/ASP is a bit rusty, so it may be an obvious answer, but why do I get "Syntax error in INSERT INTO statement." with this query:
strSQL="INSERT INTO news (title,summary,article,author,date,time) VALUES('"&title&"','"&summary&"','"&article&"','"& username&"','"&date()&"','"&time()&"')"
where title, summary, article, and username are all short strings?
(strSQL resolves to the following)
INSERT INTO news (title,summary,article,author,date,time) VALUES('AH','AHGFHFG','asdsa','jtmerchant','4/11/2006','7:19:03 PM')
|