prepare($sql); $stmh->bindValue(1, $num, PDO::PARAM_INT); $stmh->execute(); $row = $stmh->fetch(PDO::FETCH_ASSOC); include '_row.php'; } catch (PDOException $Exception) { echo "오류: ".$Exception->getMessage(); exit; } } else if ($mode === 'copy' && $num) { 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'; $mode = 'copy'; $num = null; } catch (PDOException $Exception) { echo "오류: ".$Exception->getMessage(); exit; } } else { include '_request.php'; $mode = 'insert'; $registedate = date('Y-m-d'); $inoutdate = date('Y-m-d'); $secondord = ''; } ?>
등록일자 품목명
규격
단위
매입처
 
입고 단가
수량 비고