setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $result = $conn->prepare($sql); $total = 18; try { $result->execute(); $co = $result->rowCount(); $loop_page = ceil($co / $total); if ($_POST['page'] == $loop_page) { $ne = 'disabled'; } else { $ne = 'onclick="show_data(' . ($_POST['page'] + 1) . ');"'; } $a = number_format($co); } catch (PDOException $e) { echo "Error : " . $e->getMessage(); } /*if (isset($_POST['page'])) { if ($_POST['page'] == 1 || $_POST['page'] == '') { $start = 0; $pre = 'disabled'; } else { $start = ($_POST['page'] - 1) * $total; $pre = 'onclick="show_data(' . ($_POST['page'] - 1) . ');"'; } } else { $start = 0; $pre = 'disabled'; } $sql_data = $sql . " limit $start,$total "; */ ?>
fetch(PDO::FETCH_ASSOC)) { $Aid = $rows['Aid']; $title = $rows['title']; $Atitle = $rows['Atitle']; $view = $rows['view']; $createDate = $rows['createDate']; $detail = $rows['detail']; $contentTypeID = $rows['contentTypeID']; $coverImg = $rows['coverImg']; $subTitle = $rows['subTitle']; ?>
ที่ หัวข้อประกาศ กลุ่มงาน วันที่ PDF



4) { ?>