![]() |
| ||
| <cfquery> Undefined I need some help with <cfquery>, I want to authenticate an add form so the user doesn't enter the same value twice or more so I used recordcount like this but it throws an error like Variable COOL is undefined. I am also using anplication.cfm Application.cfm also in my form, is their anything you can see I am doing wrong or do I have to define the query name cool, it is already defined in the cfquery? |
| ||
| Re: <cfquery> Undefined First of all, please don't name your query cool.recordCount. RecordCount is a property of the query object. Name it something like qryCool. Secondly, you're missing a </cfif> tag. You have two cfif statements, but only one closing. Do you already have code that determines if this is a duplicate record? What is the 'cool' variable for? If you already check, try this code and let me know: Change the adduser.cfm to include it's own <cfquery> tag. Alternately, you can do it all in SQL if you haven't determined whether this is a duplicate record or not. |
| ||
| Re: <cfquery> Undefined Thanks cmhampton the Direct SQL version worked, I just modified the cfif at the buttom and it works. |
| All times are GMT -4. The time now is 4:58 am. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC