MattJenneson
Programmer
All,
New to coldfusion so forgive the stupidity.
I'm trying to authenticate a user against a SQL Database but cannot use my SQL variable in a CFIF. Code is as below.
i have tried it without the output tags and #'s but then i get an unknown vairiable error.
am i doing something stupid?
Thanks Matt
New to coldfusion so forgive the stupidity.
I'm trying to authenticate a user against a SQL Database but cannot use my SQL variable in a CFIF. Code is as below.
Code:
<cfquery name="PassCheck" dataSource="cfBest">
SELECT PWDCOMPARE ('" & form.Password & "',(SELECT password FROM master.dbo.syslogins WHERE name = '" & form.Login&"'))
</cfquery>
<cfif <cfoutput>#PWDCOMPARE# </cfoutput> eq "1">
<cflocation url="Demo_Menu.htm">
<cfelse>
<cflocation url="Password_Incorrect.htm">
</cfif>
i have tried it without the output tags and #'s but then i get an unknown vairiable error.
am i doing something stupid?
Thanks Matt