$req = $db->prepare('UPDATE `table` SET `content`= ? WHERE `id` = ?'); var $success = $req->execute($content,$id); //execute() return true on success and false on fail