check if update query was successful php pdo code example
Example: php pdo check if update query successful
$req = $db->prepare('UPDATE `table` SET `content`= ? WHERE `id` = ?');
var $success = $req->execute($content,$id);
//execute() return true on success and false on fail