Guest User

Untitled

a guest
Jan 17th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. if($conn){
  2. echo "connection succesfull";
  3. }
  4. else{
  5. echo "failed";
  6. }
  7.  
  8. //query
  9. $query = "INSERT INTO users (user_name,user_email,user_password) VALUES (?,?,?)";
  10. //prepared stmt
  11. $stmt = mysqli_prepare($conn, $query);
  12. //binding
  13. if(mysqli_stmt_bind_param($stmt, "sss", $user_name, $user_email, $hashed_password)){
  14. echo "bind successfull";
  15. }
  16. else{
  17. echo "bind failed";
  18. }
Add Comment
Please, Sign In to add comment