Jump to content
xisto Community
Sign in to follow this  
tehyev

Php Check If Username Is Taken

Recommended Posts

Using a Database for storage of data? or flat-file? Using a Forum or CMS software?We could use a few more specifics, please.One Mysql approach is to have an input field accept the name you want to check for then do a mysql query on that name. Check the number of results. If the query results returns a row count of zero, then it is available.

Share this post


Link to post
Share on other sites

How would I go about making PHP check if a username is already registered? Thanks.


Yeah! Be more specific! Tell us where your usernames are stored?

If they are stored in a database, you'll need to query your tables for the said username and if there is a result, then we can say that the username exists!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.