Sorry, You need to accept the Terms of Service!
"; }else{ $sql = "SELECT * FROM user_register WHERE phone = '$phone' OR pw = '$pw'"; $result = mysqli_query($conn, $sql) or die(mysqli_error()); if (mysqli_num_rows($result) == 1) { $success=0; $status = "Sorry, Phone numer or Password already registered!
"; }else{ $ip=$_SERVER['REMOTE_ADDR']; $sql = "INSERT INTO user_register VALUES (DEFAULT,now(), '$fname', '$oname', '$phone', '$email', '$pw', '$accept', 'A', '$ip' )"; if (mysqli_query($conn, $sql)){ $success=1; $status = "You have successfully registered, you can proceed to login.
"; } } } } ?>