1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

php question

Discussion in 'PHP' started by whiteblue1942, Apr 12, 2008.

  1. #1
    how do i make it so that when users register they cant create a same username as someone else and it checks the database first and make sure there isnt one created already?
     
    whiteblue1942, Apr 12, 2008 IP
  2. BigJim21

    BigJim21 Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    to make is so two people cant have the same name you need to take the name being entered and compare it to the names already in the database just a few lines of code can do that for you it is not to had if you know anything about php
    so when passing it over to be entered pull and compare it if they did pick the same name just include the form again with all the info entered but the name
     
    BigJim21, Apr 12, 2008 IP