php pdo check if update query successful

Solutions on MaxInterview for php pdo check if update query successful by the best coders in the world

showing results for - "php pdo check if update query successful"
Antonia
19 Aug 2020
1$req = $db->prepare('UPDATE `table` SET `content`= ? WHERE `id` = ?');
2var $success = $req->execute($content,$id);
3//execute() return true on success and false on fail