php if pdo is executed 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