I am trying to create a registration system with PHP and MySQL. At the moment, I am trying to set it up so that, if a user tries to register with a name that's already in the database, they get a "Sorry, that name's already taken-- try again" message. Otherwise, their information gets added to the database.
The database name is bookmarks. The name of the table is user, and name of the field is username.
How do I query the database to determine if the username already exists?
2006-10-26
07:44:59
·
3 answers
·
asked by
Anonymous