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, 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. 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
Archived
This topic is now archived and is closed to further replies.