beginTransaction(); $sql = "update chandj.survey set $composer = $composer + 1"; $stmh = $pdo->prepare($sql); $stmh->execute(); $pdo->commit(); header("location:result.php"); } catch (PDOException $Exception) { $pdo->rollBack(); print "오류: ".$Exception->getMessage(); } ?>