connect_errno) { echo "Failed to connect to MySQL: " . $mysqli -> connect_error; exit(); } $email = $_POST['email']; $password = $_POST['password']; $fname = $_POST['fname']; $lname = $_POST['lname']; $phone = $_POST['phone']; $query = "SELECT * FROM webinar_users WHERE email='$email'"; $qresult = mysqli_query($conn,$query); $numrows = mysqli_num_rows($qresult); if($numrows==0){ $sql = "INSERT INTO webinar_users(first_name,last_name,phone,email,password) VALUES('$fname','$lname','$phone','$email','$password')"; $result = mysqli_query($conn,$sql); header("Location:../webinar_login.php?msg=Account created successfully"); }elseif($numrows>0){ header("Location:../signup.php?msg=Email already exists"); } if(!mysqli_query($conn,$sql)){ echo mysqli_error($conn); exit; } ?> Sign Up | Mkutano

Webinar

Sign Up

4 + 3 =

Already have a Mkutano account?
Sign In