Simple insert causing problems.
Insert code is
<cfquery name="db_insert" datasource="db26401a" dbtype="ODBC" username="us26401a" password="dxm714" dbserver="localhost" dbname="db26401a">
INSERT INTO users (id, date, rate, data) VALUES ('', '#DateFormat(CreateODBCDatetime(form.date), "yyyy/mm/dd HH:MM:SS"
#', '#form.rate#', '#form.data#')
</cfquery>
In the page, I have this:
<input type="hidden" name="date" value="#DateFormat(Now(), "yyyy/mm/dd HH:MM:SS"
#">
Error I am getting is:
Parameter 1 of function CreateODBCDateTime which is now "2000/12/17 HH:12:SS" must be a date/time value
Is this input screwing things up? How come it's showing 12 for minutes every time?
Kelani
Insert code is
<cfquery name="db_insert" datasource="db26401a" dbtype="ODBC" username="us26401a" password="dxm714" dbserver="localhost" dbname="db26401a">
INSERT INTO users (id, date, rate, data) VALUES ('', '#DateFormat(CreateODBCDatetime(form.date), "yyyy/mm/dd HH:MM:SS"
</cfquery>
In the page, I have this:
<input type="hidden" name="date" value="#DateFormat(Now(), "yyyy/mm/dd HH:MM:SS"
Error I am getting is:
Parameter 1 of function CreateODBCDateTime which is now "2000/12/17 HH:12:SS" must be a date/time value
Is this input screwing things up? How come it's showing 12 for minutes every time?
Kelani