Answered
CFML duplicate entries
Hello,
I am having trouble, I can't get the CFML to not duplicate the Users in my table. Except the user at the top of my table. but it won’t validate the rest of the users I have on my Database just the one at the top.
<cfquery name="checkusers" datasource="ukgl.co.uk">
SELECT UserName
FROM users
</cfquery>
<cfif #Form.Username# is "#checkusers.Username#"><cfoutput>#Form.Username# is already in use by another User</cfoutput><cfoutput>#checkusers.Username#</cfoutput><cfelse>
! Insert Code !
</cfif>
There’s the code I have.
Any help is greatly appreciated.
Thanks
I am having trouble, I can't get the CFML to not duplicate the Users in my table. Except the user at the top of my table. but it won’t validate the rest of the users I have on my Database just the one at the top.
<cfquery name="checkusers" datasource="ukgl.co.uk">
SELECT UserName
FROM users
</cfquery>
<cfif #Form.Username# is "#checkusers.Username#"><cfoutput>#Form.Username# is already in use by another User</cfoutput><cfoutput>#checkusers.Username#</cfoutput><cfelse>
! Insert Code !
</cfif>
There’s the code I have.
Any help is greatly appreciated.
Thanks