beginTransaction(); $sql="update chandj.member set pass=? where id=?"; $stmh=$pdo->prepare($sql); $stmh->bindvalue(1,$pass,PDO::PARAM_STR); $stmh->bindvalue(2,$id,PDO::PARAM_STR); $stmh->execute(); $pdo->commit(); if($_SESSION["division"] == '경동') header ("Location:/index.php"); else header ("Location:/index1.php"); exit; } catch (PDOException $Exception) { $pdo->rollBack(); print "오류: ".$Exception->getMessage(); } ?>