Skip to content

Instantly share code, notes, and snippets.

@raushankrjha
Created October 2, 2019 20:16
Show Gist options
  • Save raushankrjha/4f586a9ee69281a530a6d1a0e8bfac69 to your computer and use it in GitHub Desktop.
Save raushankrjha/4f586a9ee69281a530a6d1a0e8bfac69 to your computer and use it in GitHub Desktop.
<?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