A JM Posted August 26, 2009 Share Posted August 26, 2009 I have a table with userid set as a unique field in my DB since I don't want duplicates. Before my user submits the form for adding a new user how can I validate that the userid doesn't exist and give the user some feedback? A JM, Quote Link to comment https://forums.phpfreaks.com/topic/171929-how-to-test-for-existing-user/ Share on other sites More sharing options...
trq Posted August 26, 2009 Share Posted August 26, 2009 Execute a SELECT query that looks for that name. Quote Link to comment https://forums.phpfreaks.com/topic/171929-how-to-test-for-existing-user/#findComment-906563 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.