Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?php
  2. if (isset($_POST['submit'])){
  3. echo "yes we got it";
  4. }
  5. $username = $_POST['username'];
  6. $password = $_POST['password'];
  7. $connection = mysqli_connect('127.0.0.1','root','','weigo_login');
  8. if($connection){
  9. echo "successful";
  10. }else{
  11. echo "error";
  12. }
  13. $query = "INSERT INTO login users(username,password) VALUES('$username','$password')";
  14. $result mysqli_query($connection,$query);
  15. if(!$result){
  16. die('Query FAILED' . mysqli_error());
  17. }
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement