beginTransaction(); $sql = "delete from chandj.make where upnum = ?"; $stmh = $pdo->prepare($sql); $stmh->bindValue(1,$upnum,PDO::PARAM_STR); $stmh->execute(); $pdo->commit(); } catch (Exception $ex) { $pdo->rollBack(); print "오류: ".$Exception->getMessage(); } } else { try{ $pdo->beginTransaction(); $sql = "delete from chandj.make where num = ?"; $stmh = $pdo->prepare($sql); $stmh->bindValue(1,$num,PDO::PARAM_STR); $stmh->execute(); $pdo->commit(); } catch (Exception $ex) { $pdo->rollBack(); print "오류: ".$Exception->getMessage(); } } header("Location:/make/write.php?upnum=$upnum&num=$num&ordercompany=$ordercompany&callname=$callname&cutheight=$cutheight&cutwidth=$cutwidth&number=$number&comment=$comment&printside=$printside&direction=$direction&exititem=$exititem&intervalnum=$intervalnum&intervalnumsecond=$intervalnumsecond&memo=$memo&parentnum=$parentnum&left_check=$left_check&mid_check=$mid_check&right_check=$right_check&done_check=$done_check"); // 신규가입일때는 리스트로 이동 ?>