PDO error: ” SQLSTATE[HY000]: General error ” When updating database

You do not use fetchAll(),as in

$result = $stmt->fetchAll();

with update or insert queries. Removing this statement should rectify the problem.

Leave a Comment