8) {
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';
$mode = isset($_REQUEST['mode']) ? $_REQUEST['mode'] : '';
$num = isset($_REQUEST["num"]) ? $_REQUEST["num"] : "";
$tablename = isset($_REQUEST["tablename"]) ? $_REQUEST["tablename"] : "output";
require_once $_SERVER['DOCUMENT_ROOT'] . '/load_GoogleDriveSecond.php'; // attached, image에 대한 정보 불러오기
$title_message = "철재(스라트) 작업 ";
include $_SERVER['DOCUMENT_ROOT'] . '/mymodal.php';
require_once($_SERVER['DOCUMENT_ROOT'] . "/lib/mydb.php");
$pdo = db_connect();
$today = date("Y-m-d"); // 현재일자 변수지정
try {
$sql = "select * from $DB.$tablename where num = ? ";
$stmh = $pdo->prepare($sql);
$stmh->bindValue(1, $num, PDO::PARAM_STR);
$stmh->execute();
$count = $stmh->rowCount();
$row = $stmh->fetch(PDO::FETCH_ASSOC); // $row 배열로 DB 정보를 불러온다.
if ($count < 1) {
print "검색결과가 없습니다.
";
} else {
include $_SERVER['DOCUMENT_ROOT'] . "/output/_row.php";
if ($indate != "0000-00-00") $indate = date("Y-m-d", strtotime($indate));
else $indate = "";
if ($outdate != "0000-00-00") $outdate = date("Y-m-d", strtotime($outdate));
else $outdate = "";
}
} catch (PDOException $Exception) {
print "오류: ".$Exception->getMessage();
}
?>