beginTransaction(); $sql = "delete from chandj.bending_write 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.bending_write 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:/analysis/write.php?upnum=$upnum&outputnum=$outputnum&datanum=$datanum&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"); // 신규가입일때는 리스트로 이동 ?>