|
|
|
|
![]() ![]() |
Oct 28 2006, 11:40 PM
Post
#1
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 70 Joined: 4-October 06 Member No.: 31,087 |
How would I go about making PHP check if a username is already registered? Thanks.
|
|
|
|
Oct 29 2006, 03:22 AM
Post
#2
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 4,079 Joined: 24-July 05 From: Linix, DOS and Windows…the good, the bad and the ugly Member No.: 9,787 ![]() |
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. |
|
|
|
Oct 29 2006, 04:19 AM
Post
#3
|
|
|
Newbie [Level 2] ![]() ![]() Group: Members Posts: 29 Joined: 18-October 06 Member No.: 31,854 |
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! |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
Lo-Fi Version | Time is now: 12th October 2008 - 03:50 AM |