Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. <?php include "db.php";?>
  2. <?php
  3.  
  4. if (isset($_POST['submit'])) {
  5. $username=$_POST['username'];
  6. $password=$_POST['password'];
  7.  
  8.  
  9. $query="INSERT INTO tt(username,password)VALUES('$username','$password')";
  10. $result=mysqli_query($connection,$query);
  11. if (!$result) {
  12. echo "query failed".mysqli_error();
  13. }
  14.  
  15. }
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement