====== PDO - Update Statements ====== exec("UPDATE table SET field='value'"); echo $affected_rows.' were affected' ===== Prepared Statements ===== prepare("UPDATE table SET name=? WHERE id=?"); $stmt->execute(array($name, $id)); $affected_rows = $stmt->rowCount();