daily pastebin goal
24%
SHARE
TWEET

Untitled

a guest Jan 17th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
Top