Results 1 to 10 of 40

Thread: Probelm with MySQL register.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 451 Times in 305 Posts
    Quote Originally Posted by nightbot View Post
    could you fix it for me?
    You can restrict double values with UNIQUE.
    Your problem isn't the database, but how you process the results.
    E.g.
    PHP Code:
    case "register"
       
    hasLogin searchForLogin(username); 
       if (!
    hasLogin) {
          
    createAdmin(usernamepassword);
       } 
    Note: this is not working code that you can just copy and paste and use. Just an example.

  2. The Following User Says Thank You to Mitch For This Useful Post:

    nightbot (23rd July 2016)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •