Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers!
/Peo, FreeWebSpace.net
Thanks for your help, but I just found out how. All I did was do
SELECT username FROM users WHERE username='$blah'
and count the number of rows. If it was >= 1, then it would return an error, else it would process it.
Basically I have a user signup/login system on a MySQL backend. However, visitors can sign up multiple times with the same username. How would I get MySQL to check if there already exists the username in the database?
The table is like this
id username password email
1 blahblahb blahblah...
Wow, a whole thread dedicated to my birthday. :o First of all, none of you spelled it right, its EpidemiK not EpedemiK. ;) I turned 15 today.. joined fws when I was 11 or 12 I think. ;) Also I post a lot elsewhere too. :wink2: