Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "newdb.php";
- $dbcon=connect_db();
- ?>
- <?php
- $username=$_POST["username"];
- $password=$_POST["password"];
- $fullname=$_POST["fullname"];
- $flag=0;
- $statement="insert into users(username,password,fullname) values('$username','$password','$fullname')";
- if (mysqli_query($dbcon, $statement))
- {
- echo 1;
- exit();
- }
- else
- {
- echo 0;
- exit();
- }
- close_db();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement