Yankeet
2009-03-27 16:50:29 UTC
Hi, I've included a simple cfif statment to check to see if a user is already
in the database, for some reaons the <cfelse> part of the statement does not
work. that is, if the user is there it returns the recordcount and ID etc. but
if it is a new user (no records found) it is just blank (without the nothing
doing !!!) any ideas?
Thanks
Yankee
<cfoutput query="getuser">
<cfif getuser.recordcount IS 1> #getuser.recordcount# records found! ID
#getuser.userID#
<cfelse>
nothing doing !!!
</cfif>
#getuser.recordcount#
</cfoutput>
in the database, for some reaons the <cfelse> part of the statement does not
work. that is, if the user is there it returns the recordcount and ID etc. but
if it is a new user (no records found) it is just blank (without the nothing
doing !!!) any ideas?
Thanks
Yankee
<cfoutput query="getuser">
<cfif getuser.recordcount IS 1> #getuser.recordcount# records found! ID
#getuser.userID#
<cfelse>
nothing doing !!!
</cfif>
#getuser.recordcount#
</cfoutput>