5) { sleep(1); header("Location:" . $WebSite . "login/login_form.php"); exit; } include $_SERVER['DOCUMENT_ROOT'] . '/load_header.php'; // 첫 화면 표시 문구 $title_message = '전산 개발일지'; ?> <?=$title_message?> query($sql); // 검색조건에 맞는글 stmh $total_row=$stmh->rowCount(); } catch (PDOException $Exception) { print "오류: ".$Exception->getMessage(); } // var_dump($sql); try{ $stmh = $pdo->query($sql); ?>
 
fetch(PDO::FETCH_ASSOC)) { $item_num=$row["num"]; $item_id=$row["id"]; $item_name=$row["name"]; $item_nick=$row["nick"]; $item_hit=$row["hit"]; $item_date=$row["regist_day"]; $item_date=substr($item_date, 0, 10); $item_subject=str_replace(" ", " ", $row["subject"]); $sql="select * from ".$DB.".notice_ripple where parent=$item_num"; $stmh1 = $pdo->query($sql); $num_ripple=$stmh1->rowCount(); ?> getMessage(); } ?>
번호 글제목 작성자 등록일자 조회수