danarashad
Programmer
<CFSET form.timestamp=Now()>
INSERT INTO commonLinks(title,description,url,timestamp)
VALUES('#form.title#','#form.description#','#form.url#',#dateformat(form.timestamp,"m/dd/yyyy")# #timeFormat(form.timestamp,"h:mm:ss tt")#)
I am trying to insert a timestamp into my database but I keep getting this error.
[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
SQL = "INSERT INTO commonLinks(title,description,url,timestamp) VALUES('fdsafadfsdfasdf','fdfasdfsdfsd',' 09:29:35 AM)"
I am trying to enter the date as 7/26/2007 09:29:35 AM
INSERT INTO commonLinks(title,description,url,timestamp)
VALUES('#form.title#','#form.description#','#form.url#',#dateformat(form.timestamp,"m/dd/yyyy")# #timeFormat(form.timestamp,"h:mm:ss tt")#)
I am trying to insert a timestamp into my database but I keep getting this error.
[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
SQL = "INSERT INTO commonLinks(title,description,url,timestamp) VALUES('fdsafadfsdfasdf','fdfasdfsdfsd',' 09:29:35 AM)"
I am trying to enter the date as 7/26/2007 09:29:35 AM