Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require 'dbconfig.php';
- $username=$_POST['username'];
- $password=$_POST['password'];
- $confirmpassword=$_POST['confirmpassword'];
- $fullname=$_POST['fullname'];
- $sql = "insert into users(username,password,fullname) values";
- $sql=$sql."('$username','$password','$fullname')";
- if ($conn->query($sql) === TRUE)
- {
- echo 1;
- }
- else
- {
- echo 0;
- }
- $conn->close();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement