Skip to Content Skip to Menu

[SOLVED] Check if field value exists in comprofiler table

  • ontarget
  • ontarget
  • OFFLINE
  • Posts: 24
  • Thanks: 2
  • Karma: 0
2 years 10 months ago - 2 years 10 months ago #326841 by ontarget
Hi
I have a field called "Membership number".
If a user enters a Membership number that is already in the comprofiler table I want to block their registration (much in the same way that email values cant be registered twice)
Is the possible with CB?
Do i need a special plugin?
Last edit: 2 years 10 months ago by krileon. Reason: Added [SOLVED] tag to subject

Please Log in or Create an account to join the conversation.

  • ontarget
  • ontarget
  • OFFLINE
  • Posts: 24
  • Thanks: 2
  • Karma: 0
2 years 10 months ago - 2 years 10 months ago #326842 by ontarget
I used the CB Query add on
SELECT * FROM `jos_comprofiler` WHERE `cb_membernumber` = '[value]'
Validate on empty result
Works great!
Last edit: 2 years 10 months ago by ontarget.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum