Jump to content

Preventing multiple-sign up


terryds

Recommended Posts

You can make it a unique index, but that's just going to cause a database error when you try to add a duplicate row. If you don't want your script to fail with a database error then do what everyone else does and check if a record already exists before adding the new one. Then you can give your own error message to the user instead of your script just failing.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...