Ask a Question related to Coldfusion Database Access, Design and Development.
-
justay #1
a problem about cfinsert&sql.insert
hi~
when i insert data into form,there is a stranger things happend:
when i insert with one value ,it's ok,but when changing the number of the
value ,the wrong happens.System show me the sql statement cause this error.the
code blow:
<---!---blow this is ok--------------------->
<cfquery datasource="myDB">
insert into mytable(userID,
password)
values("#form.userID#")
</cfquery>
<---!blow this cause wrong---->
<cfquery datasource="myDB">
insert into mytable(userID,
password)
values("#form.userID#",
"#form.password#")
</cfquery>
ps:i use coldfusion 7.0 database is access2003
ps:Please forgive my poor English!
justay Guest
-
cfinsert help
I would like to have people insert information into a database. It's a single table in a database, so I thought I would try <cfinsert> I'm... -
about cfinsert tag error!
please look this code: <cfif IsDefined("Form.posted")> <cfinsert datasource="test" tablename="users"... -
insert using cfinsert
I have been trying to upgrade my server from CF 5 to CF 7. I have a table as keywords with the attributes as follows: ID int (primary key) keyword... -
CFInsert
Hi. I was hoping I could get help on an issue. I am using CFInsert to add data from a form into two tables that are related. Table 1: Members... -
CFinsert misbehaves
Any ideas why a CFinsert tag would work on my partner's desktop and not on my laptop? Both are using CF 6.0 and MS Access database. All the... -
Sojovi #2
Re: a problem about cfinsert&sql.insert
Post the complete error message.
Regards
Sojovi Guest
-
justay #3
Re: a problem about cfinsert&sql.insert
the error message blow:
--------------------------------
The error occurred in C:\CFusionMX7\wwwroot\web\insert.cfm: line 5
3 : <cfquery datasource="ACCDB">
4 : insert into userInf(userID,password)
5 : values('#form.userID#','#form.password#')
6 : </cfquery>
7 :
--------------------------------------------------------------------------------
SQL insert into userInf(userID,password) values('qweqwrqw1231',"124123423")
DATASOURCE ACCDB
VENDORERRORCODE 3092
SQLSTATE
Thanks for your help!
justay Guest
-
paross1 #4
Re: a problem about cfinsert&sql.insert
Looks like you have a problem with tje value of #form.password#, as it is enclosed in double quotes for some reason: "124123423" What is setting this form variable?
Phil
paross1 Guest



Reply With Quote

