Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <?php
  2. include "newdb.php";
  3. $dbcon=connect_db();
  4. ?>
  5. <?php
  6. $username=$_POST["username"];
  7. $password=$_POST["password"];
  8. $fullname=$_POST["fullname"];
  9. $flag=0;
  10. $statement="insert into users(username,password,fullname) values('$username','$password','$fullname')";
  11. if (mysqli_query($dbcon, $statement))
  12. {
  13. echo 1;
  14. exit();
  15. }
  16. else
  17. {
  18. echo 0;
  19. exit();
  20. }
  21. close_db();
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement