Ask a Question related to Coldfusion Database Access, Design and Development.
-
bfinelsen #1
CFQUERY not working for some reason
I have the following code to authenticate a password, and it is successful,
complete the <CFIF> Statement:
<cfquery name="checkpass" datasource="#request.ds#">
SELECT Count(tbl_Passwords.password) AS CPASS
FROM tbl_Passwords
WHERE tbl_Passwords.password='#FORM.password#';
</cfquery>
<cfif checkpass.CPASS GT 0>
Do something here........
However, it shoots right to the <CFELSE> part which says password cannot be
authenticated. The password exists and is in the database, so I'm confused as
to why this no longer works. Especially since I have not changed this code in
quite some time and it was working fine. Please help
bfinelsen Guest
-
Reason why Player not working
The reason that many websites are asking you to upgrade Shockwave Player is because of the method that is being used to determine which ActiveX... -
No components working for no reason!
Oh my god! For some reason every single page that relies on a component, doesn't work! This is horrible! I always get this. The system has... -
PreserveSingleQuotes Not Working in CFQUERY
Just a heads up to those for those using CFSCRIPT within a CFQUERY to compose a Dynamic SQL statement. When you try to use... -
cfquery for date not working
Greetings - I am sure what I am missing is something simple. I am trying to query for a specific date in a database. However, when I search for a... -
Any reason why....
That's just the way they created the application. Some (but not all) effects that aren't available to the full CMYK image CAN be used if you apply... -
JaredJBlackburn #2
Re: CFQUERY not working for some reason
If you haven't already, turn on CF debugging and see what query you are
actually sending to the SQL server. If you're problem isn't obvious at first
glance, paste the resulting sql code into query analyzer and run it there to
see what happens. You may also consider removing the count() aggr function
from the sql and letting it return rows - then <cfdump var="#checkpass"#> right
after you </cfquery> to see what actually got returned to coldfusion.
JaredJBlackburn Guest



Reply With Quote

