How to prevent duplicate Usernames in php/mysql
(This is my first try with php) I have a very basic register page. http://graves-incorporated.com/test_sites/member_test/register/register.php * I just remembered PHP code doesn't show up in the source so here it is: enter code here <?php include('connection.php'); if(isset($_POST['form'])){ if(empty($_POST['username']) || empty($_POST['password']) || empty($_POST['conf_pass']) || empty($_POST['email'])){ echo '<b>Please fill out all fields.</b>'; }elseif($_POST['password'] != $_POST['conf_pass']){ echo '<b>Your Passwords do not match.</b>'; }else{ $url = 'http://graves-incorporated.com/test