5) { sleep(1); header("Location:" . $WebSite . "login/login_form.php"); exit; } include $_SERVER['DOCUMENT_ROOT'] . '/load_header.php'; $title_message = '절곡 BOM 생성/수정'; ?> <?=$title_message?> prepare($sql); $stmh->execute(); $row = $stmh->fetch(PDO::FETCH_ASSOC); // $row 배열로 DB 정보를 불러온다. $itemList = isset($row['itemList']) ? $row['itemList'] : []; $load_priceDate = $row['registedate'] ?? ''; // itemList 문자열일 때만 json_decode 실행 if (is_string($itemList)) { $itemList = json_decode($itemList, true); } // itemList 유효한 배열이 아닐 경우 빈 배열로 초기화 if (!is_array($itemList)) { $itemList = []; } } catch (PDOException $Exception) { print "오류: ".$Exception->getMessage(); } // 단가를 처리하는 과정에서 // echo '
';
// 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; ?>
0 && $mode !== 'copy' ){ ?>
부품
부품명 재질 연신율 합 전개도 합 연신율 + 전개도 면적당 단가 단가 수량 단가합계 삭제
Image