View Single Post
Old 01-03-2013, 06:01 PM   PM User | #9
Jian0203
New Coder

 
Join Date: Mar 2012
Posts: 47
Thanks: 2
Thanked 0 Times in 0 Posts
Jian0203 is an unknown quantity at this point
Quote:
Originally Posted by Dormilich View Post
easiest and most failsafe method is making the username column either the Primary Key or UNIQUE.
Yeah, it's a good solution though. I set it to unique and it doesn't another a same username.

But I need to alert the user that the username is existed. So, the user can register again. How should i do this ? I am searching for the suitable solution for two days. But the codes or guidelines are not working with my codes.
Jian0203 is offline   Reply With Quote