I have a MySQL database, in it I have a table with a section for usernames. I'd like to search that row for a certain username and perform an action ONLY if the username is NOT already present.
This is for a sign-up form.
In other words, if the username exists, stop and inform tell the user to select another name.
I have the connection working, the table built, and the message to echo. All I need is the search.
I know how to do something like SELECT * FROM example WHERE username LIKE $_POST['username'] but what comes next?
PLEASE HELP!