Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.
<!--- in this query select NOTHING from table #request.RegisterTable#, and simply check if x_email exists ---> <cfquery datasource="#APPLICATION.dataSource#" name="CheckUserEmail"> SELECT 'Nothing' FROM #request.RegisterTable# WHERE x_email = <CFQUERYPARAM CFSQLTYPE="cf_sql_varchar" VALUE="#form.x_email#"> AND RegisterID <> <cfqueryparam cfsqltype="cf_sql_integer" value="#val(form.RegisterID)#"> </cfquery> <!--- if x_email exists, display error; refuse record insert ---> <cfif CheckUserEmail.recordcount GT 0> <cfthrow message="That email address is already in use. Did you already register for the NNVAWI conference? Please contact NNVAWI at firstname.lastname@example.org."> </cfif>
Join the community of 500,000 technology professionals and ask your questions.