5) { sleep(1); header("Location:" . $WebSite . "login/login_form.php"); exit; } include $_SERVER['DOCUMENT_ROOT'] . '/load_header.php'; ?> <?=$title_message?> prepare($sql); $stmh->bindValue(1, $num, PDO::PARAM_STR); $stmh->execute(); $row = $stmh->fetch(PDO::FETCH_ASSOC); include '_row.php'; if($noticecheck=='y') $noticecheck_memo='(전체공지)'; else $noticecheck_memo=''; if ($is_html=='y'){ // $content = str_replace(" ", " ", $content); // $content = str_replace("\n", "
", $content); $content = htmlspecialchars_decode($content); } // $content = str_replace("\n", "
", $content); $content = str_replace("\r", "
", $content); $new_hit = $hit + 1; try{ $pdo->beginTransaction(); $sql = "update " . $DB . "." . $tablename . " set hit=? where num=?"; // 글 조회수 증가 $stmh = $pdo->prepare($sql); $stmh->bindValue(1, $new_hit, PDO::PARAM_STR); $stmh->bindValue(2, $num, PDO::PARAM_STR); $stmh->execute(); $pdo->commit(); } catch (PDOException $Exception) { $pdo->rollBack(); print "오류: ".$Exception->getMessage(); } // 초기 프로그램은 $num사용 이후 $id로 수정중임 $id=$num; $author_id = $row['id'] ; require_once $_SERVER['DOCUMENT_ROOT'] . '/load_GoogleDriveSecond.php'; // attached, image에 대한 정보 불러오기 // print_r($saveimagename_arr); ?>
| | 조회 : |
query($sql); // ripple PDOStatement 변수명을 다르게 } catch (PDOException $Exception) { print "오류: ".$Exception->getMessage(); } while ($row_ripple = $stmh1->fetch(PDO::FETCH_ASSOC)) { $ripple_num = $row_ripple["num"]; $ripple_id = $row_ripple["id"]; $ripple_name = $row_ripple["name"]; $ripple_content = str_replace("\n", "", $row_ripple["content"]); $ripple_content = str_replace(" ", " ", $ripple_content); $ripple_date = $row_ripple["regist_day"]; ?>
▶    ✔   작성자 : |             "; } } print '
'; } ?>
댓글
getMessage(); } ?>