I am executing the follwing statements in php,mysql. The database isn’t gettig updated. I dont get any exception or any error notice. The query runs fine but database values are not updated.
$stmt=$dbh->prepare("update stops set lat = ?, lon = ?, issuffolk = ? where id = ?");
$stmt->execute(array($latitude,$longitude,$issuffolk,$stopId));
could anyone let me know what the problem is.
Maybe you are in a transaction(via
PDO::beginTransaction()somewhere?), so add$dbh->commit();after you executed the prepared statement and check the result.