Created
October 2, 2019 20:16
-
-
Save raushankrjha/4f586a9ee69281a530a6d1a0e8bfac69 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include "config.php"; | |
// REGISTER USER | |
$name = mysqli_real_escape_string($connect, $_POST['name']); | |
$email = mysqli_real_escape_string($connect, $_POST['email']); | |
$mobile = mysqli_real_escape_string($connect, $_POST['mobile']); | |
$query = "INSERT INTO registereduser (name, email,mobile) | |
VALUES('$name', '$email','$mobile')"; | |
$results = mysqli_query($connect, $query); | |
if($results>0) | |
{ | |
echo "user added successfully"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment