0) { $success=0; $status = "
Sorry, Username or Password already registered!
"; }elseif($password1 != $password2){ $success=0; $status = "Sorry, Password and Repeat password does not match!
"; }elseif($email != $email2){ $success=0; $status = "Sorry, Email and Confirm Email does not match!
"; }else{ $sql="INSERT INTO register_tb VALUES ('',now(),'$username','$password1','$title','$firstname','$middlename','$lastname','$gender','$affiliation','$email','$orcid','$url','$address','$country', '$google_analytics', '$interests', '$bio','','','$user_type')"; mysqli_query($conn, $sql) or die(mysqli_error($conn)); $success=1; $status = "You have successfully registered, you can proceed to login to submit your article.
"; } } ?>