i have a user database how can i make it so that when someone registers it doesnt enter the info in the database if the e-mail address or username exists?
would it be a case of getting php to
SELECT * FROM $table WHERE user=$username AND email=$EMAIL
?