Hi Guys Im developing an application and im inserting users to my database but i want to make sure that a username can only be one, no usernames are the same.. How wud i do that in PHP..
JuliaNell
0
Newbie Poster
Recommended Answers
Jump to Postbefore you do the insert, query the table for that username to check if it already exists, and if it does, return a "username already taken" error message.
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.