alert('Please complete required fields')"; } else { $check = "SELECT email FROM tbl_registration WHERE email='$email'"; $res = mysqli_query($con, $check); if (mysqli_num_rows($res) > 0) { echo ""; } else { $sql = "INSERT INTO tbl_registration (first_name,last_name,email,password,birth_date,phone_number,height,weight,gender) VALUES ('$fname','$lname','$email','$pass','$bdate','$phone','$height','$weight','$gender')"; if (mysqli_query($con, $sql)) { echo ""; } } } } ?>