5) {
sleep(1);
header("Location:" . $WebSite . "login/login_form.php");
exit;
}
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
include $_SERVER['DOCUMENT_ROOT'] . '/load_header.php';
$title_message = '견적 단가';
$header = isset($_REQUEST["header"]) ? $_REQUEST["header"] : "";
?>
=$title_message?>
prepare($sql);
$stmh->execute();
$row = $stmh->fetch(PDO::FETCH_ASSOC); // $row 배열로 DB 정보를 불러온다.
include $_SERVER['DOCUMENT_ROOT'] . '/price_raw_materials/_row.php';
} catch (PDOException $Exception) {
print "오류: ".$Exception->getMessage();
}
$tablename = 'price_motor';
try {
// 최신 데이터를 가져오기 위해 ORDER BY와 LIMIT을 추가
$sql = "SELECT * FROM {$DB}.$tablename where is_deleted = '0' ORDER BY num DESC LIMIT 1";
$stmh = $pdo->prepare($sql);
$stmh->execute();
$row = $stmh->fetch(PDO::FETCH_ASSOC); // $row 배열로 DB 정보를 불러온다.
$item_motor = $row['itemList'];
} catch (PDOException $Exception) {
print "오류: ".$Exception->getMessage();
}
$tablename = 'price_bend';
try {
// 최신 데이터를 가져오기 위해 ORDER BY와 LIMIT을 추가
$sql = "SELECT * FROM {$DB}.$tablename where is_deleted = '0' ORDER BY num DESC LIMIT 1";
$stmh = $pdo->prepare($sql);
$stmh->execute();
$row = $stmh->fetch(PDO::FETCH_ASSOC); // $row 배열로 DB 정보를 불러온다.
$item_bend = $row['itemList'];
} catch (PDOException $Exception) {
print "오류: ".$Exception->getMessage();
}
$tablename = 'price_shaft';
try {
// 최신 데이터를 가져오기 위해 ORDER BY와 LIMIT을 추가
$sql = "SELECT * FROM {$DB}.$tablename where is_deleted = '0' ORDER BY num DESC LIMIT 1";
$stmh = $pdo->prepare($sql);
$stmh->execute();
$row = $stmh->fetch(PDO::FETCH_ASSOC); // $row 배열로 DB 정보를 불러온다.
$item_shaft = $row['itemList'];
} catch (PDOException $Exception) {
print "오류: ".$Exception->getMessage();
}
$tablename = 'price_pole';
try {
$sql = "SELECT * FROM {$DB}.$tablename where is_deleted = '0' ORDER BY num DESC LIMIT 1";
$stmh = $pdo->prepare($sql);
$stmh->execute();
$row = $stmh->fetch(PDO::FETCH_ASSOC); // $row 배열로 DB 정보를 불러온다.
$item_pole = $row['itemList'];
} catch (PDOException $Exception) {
print "오류: ".$Exception->getMessage();
}
$tablename = 'price_angle';
try {
$sql = "SELECT * FROM {$DB}.$tablename where is_deleted = '0' ORDER BY num DESC LIMIT 1";
$stmh = $pdo->prepare($sql);
$stmh->execute();
$row = $stmh->fetch(PDO::FETCH_ASSOC); // $row 배열로 DB 정보를 불러온다.
$item_angle = $row['itemList'];
} catch (PDOException $Exception) {
print "오류: ".$Exception->getMessage();
}
$tablename = 'price_pipe';
try {
$sql = "SELECT * FROM {$DB}.$tablename where is_deleted = '0' ORDER BY num DESC LIMIT 1";
$stmh = $pdo->prepare($sql);
$stmh->execute();
$row = $stmh->fetch(PDO::FETCH_ASSOC); // $row 배열로 DB 정보를 불러온다.
$item_pipe = $row['itemList'];
} catch (PDOException $Exception) {
print "오류: ".$Exception->getMessage();
}
$tablename = 'price_screenplate';
try {
$sql = "SELECT * FROM {$DB}.$tablename where is_deleted = '0' ORDER BY num DESC LIMIT 1";
$stmh = $pdo->prepare($sql);
$stmh->execute();
$row = $stmh->fetch(PDO::FETCH_ASSOC); // $row 배열로 DB 정보를 불러온다.
$item_screenplate = $row['itemList'];
} catch (PDOException $Exception) {
print "오류: ".$Exception->getMessage();
}
$tablename = 'price_smokeban';
try {
$sql = "SELECT * FROM {$DB}.$tablename where is_deleted = '0' ORDER BY num DESC LIMIT 1";
$stmh = $pdo->prepare($sql);
$stmh->execute();
$row = $stmh->fetch(PDO::FETCH_ASSOC); // $row 배열로 DB 정보를 불러온다.
$item_smokeban = $row['itemList'];
} catch (PDOException $Exception) {
print "오류: ".$Exception->getMessage();
}
?>