Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dbhost = 'localhost';
- $dbuser = 'root';
- $dbpass = '';
- $db = 'muktar';
- $con = mysqli_connect($dbhost, $dbuser, $dbpass, $db);
- if(!$con){
- echo "DB Connection Error";
- }
- if(!empty($_POST)){
- $name = $_POST['name'];
- $phone = $_POST['cell'];
- $email = $_POST['email'];
- $username = $_POST['username'];
- $password = $_POST['password'];
- $repassword = $_POST['repass'];
- $insert = "INSERT INTO register_user(id,name,phone,email,username,password)
- VALUES('', '$name', '$phone', '$email', '$username', '$password')";
- if(mysqli_query($con, $insert)){
- echo "Registration Successfully";
- }
- else{
- echo "Registration Failed";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement