I am not sure why this is producing a SQL Server related error, but w/o
having an instance of SQL Server on my machine to verify anything further,
can you all help me with this?
<!--- validate() --->
<cffunction name="validate" access="remote" returnType="num eric">
<cfargument name="username" required="yes" type="string" />
<cfargument name="password" required="yes" type="string" />
<cfquery name="validate" datasource="#re quest.dsn#">
SELECT userID
FROM User
WHERE username = '#UCase(usernam e)#'
AND password = '#UCase(passwor d)#'
</cfquery>
<cfif validate.Record Count EQ 0>
<cfquery name="log" datasource="#re quest.dsn#">
UPDATE User
SET lastLoggedIn = #createOdbcDate (now())#
WHERE userId = #validate.userI D#
</cfquery>
<cfreturn validate.userID />
<cfelse>
<cfreturn 0 />
</cfif>
</cffunction>
Sorry that's all I can honestly provide, other than the error being on the
line with <cfif validate.Record Count>
Phil
having an instance of SQL Server on my machine to verify anything further,
can you all help me with this?
<!--- validate() --->
<cffunction name="validate" access="remote" returnType="num eric">
<cfargument name="username" required="yes" type="string" />
<cfargument name="password" required="yes" type="string" />
<cfquery name="validate" datasource="#re quest.dsn#">
SELECT userID
FROM User
WHERE username = '#UCase(usernam e)#'
AND password = '#UCase(passwor d)#'
</cfquery>
<cfif validate.Record Count EQ 0>
<cfquery name="log" datasource="#re quest.dsn#">
UPDATE User
SET lastLoggedIn = #createOdbcDate (now())#
WHERE userId = #validate.userI D#
</cfquery>
<cfreturn validate.userID />
<cfelse>
<cfreturn 0 />
</cfif>
</cffunction>
Sorry that's all I can honestly provide, other than the error being on the
line with <cfif validate.Record Count>
Phil
Comment