5) { sleep(1); header("Location:" . $WebSite . "login/login_form.php"); exit; } include $_SERVER['DOCUMENT_ROOT'] . '/load_header.php'; $title_message = '절곡 BOM 생성/수정'; ?>
'; // print_r($itemList); // echo ''; if($mode == 'copy') { try { $sql = "SELECT * FROM {$DB}.{$tablename} WHERE num = ?"; $stmh = $pdo->prepare($sql); $stmh->bindValue(1, $num, PDO::PARAM_INT); $stmh->execute(); $row = $stmh->fetch(PDO::FETCH_ASSOC); include '_row.php'; } catch (PDOException $Exception) { print "오류: ".$Exception->getMessage(); } } else { if($num > 0) { try { $sql = "SELECT * FROM {$DB}.{$tablename} WHERE num = ?"; $stmh = $pdo->prepare($sql); $stmh->bindValue(1, $num, PDO::PARAM_INT); $stmh->execute(); $row = $stmh->fetch(PDO::FETCH_ASSOC); include '_row.php'; } catch (PDOException $Exception) { print "오류: ".$Exception->getMessage(); } $mode = 'modify'; } else { include '_request.php'; $mode = 'insert'; $priceDate = $load_priceDate; } } // print 'mode : '. $mode; ?>