5) { sleep(1); header("Location:" . $WebSite . "login/login_form.php"); exit; } include $_SERVER['DOCUMENT_ROOT'] . '/load_header.php'; // 첫 화면 표시 문구 $title_message = '셔터 모델 및 절곡물 품목 관리'; ?> <?=$title_message?> query($columnSql); $allColumns = $colStmt->fetchAll(PDO::FETCH_COLUMN); $i = 0; foreach ($allColumns as $colName) { if (in_array($colName, ['is_deleted'])) continue; $paramKey = ":search_" . $i; $columns[] = "{$colName} LIKE {$paramKey}"; $bindParams[$paramKey] = '%' . $search . '%'; $i++; } if (!empty($columns)) { $conditions[] = '(' . implode(' OR ', $columns) . ')'; } } // 선택된 model_name 필터 if (!empty($model_name)) { $conditions[] = "model_name = :model_name"; $bindParams[':model_name'] = $model_name; } $sqlWhere = implode(" AND ", $conditions); $sql = "SELECT * FROM {$DB}.{$tablename} WHERE {$sqlWhere} {$order_by}"; // echo $sql; // 디버깅 출력 try { $stmh = $pdo->prepare($sql); foreach ($bindParams as $key => $val) { $stmh->bindValue($key, $val); } $stmh->execute(); $total_row = $stmh->rowCount(); ?>
 
fetch(PDO::FETCH_ASSOC)) { ?> getMessage(); } ?>
번호 대분류 모델명 가이드레일 마감타입 설명 등록일 수정일