0

I can get this to delete. Getting error: "PHP Fatal error: Uncaught Error: Call to a member function bind_param() on boolean in"

If i change DELETE FROM to SELECT* FROM, it works. Is it any special with DELETE?

$stmt = $conn->prepare("DELETE FROM password_request WHERE email = ?");
$stmt->bind_param("s", $email);
if($stmt->execute()) { 
  echo 'Deleted';
} else {
  echo 'Not deleted';
}

I tried the stuff from: Fatal error: Call to a member function bind_param() on boolean Not same issue i think.

Alex
  • 1
  • 2

0 Answers0