php pdo execute how to know if the query is successful 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