Advertisement
GreMendes

sql Error

Oct 28th, 2015
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.56 KB | None | 0 0
  1. Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@hotmail.com ,$2y$10$Px0B010krleMbVs3oylxBukvt1kCjEgJSjFqCBgMk/jICW1cl0XRq ,fals' at line 1
  2.  
  3.  
  4. // register.php
  5. <?php
  6.  
  7. include_once ("connect.php");
  8.  
  9. $email = $_POST['email'];
  10. $pw = password_hash($_POST['password'],PASSWORD_DEFAULT);
  11.  
  12.  
  13. if(mysqli_query($link,"INSERT INTO users VALUES (null ,$email ,$pw ,false)") === TRUE)
  14.     echo "Cadastrado com sucesso!";
  15. else
  16.      printf("Error: %s\n", mysqli_error($link));
  17.  
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement