I am using COld Fusion on Solaris and MySQL. My query is the following:
<cfquery name="modify" datasource="dbname" dbtype="ODBC" timeout="60" username="username" password="assword" dbserver="localhost" dbname="dbname">
UPDATE users SET fname=fname, lname=lname, city=city, state=state, zip=zip, email=email, site=site, kwds=kwds, priv=priv, site=site, url=url WHERE id=id</cfquery>
On another update query, I have this:
<CFQUERY name="logplus" datasource="dbname" username="username" password="password" dbserver="localhost" dbname="dbname">
UPDATE users SET login=login+1
</CFQUERY>
And it works.
What's the problem here?
<cfquery name="modify" datasource="dbname" dbtype="ODBC" timeout="60" username="username" password="assword" dbserver="localhost" dbname="dbname">
UPDATE users SET fname=fname, lname=lname, city=city, state=state, zip=zip, email=email, site=site, kwds=kwds, priv=priv, site=site, url=url WHERE id=id</cfquery>
On another update query, I have this:
<CFQUERY name="logplus" datasource="dbname" username="username" password="password" dbserver="localhost" dbname="dbname">
UPDATE users SET login=login+1
</CFQUERY>
And it works.
What's the problem here?