Advertisement
Guest User

Untitled

a guest
Feb 7th, 2017
789
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <?php
  2.  
  3. $host = "";
  4. $user = "";
  5. $pass = "";
  6. $db = "";
  7.  
  8. $conn = new mysqli($host, $user, $pass, $db);
  9. $conn->query("SET NAMES UTF8");
  10.  
  11. $username = $conn->real_escape_string($_POST['user']);
  12. $password = $conn->real_escape_string($_POST['password']);
  13.  
  14. $query = "INSERT into tni_test (data_user, data_password) VALUES('" . $username . "','" . $password . "')";
  15. $queryResponse = $conn->query($query);
  16.  
  17. echo "Success";
  18.  
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement