PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm missing something so basic, but I can't figure it out. I think I need sleep. Basically, I'm adding a player to a database, and if the email address entered (via html form) already exists in the database, the code prints the message 'the player already exists.' However if the email address doesn't exist, it adds the player's info to the database. The code can find the duplicate email fine and puts out the alert message, but if it is a new email address, it won't run the code to after the else statement. I know there is probably a million other ways to do this more efficiently, but I stink at php. Thanks in advance.