include("th_admin/conec/db_conn.php"); $SQLStr = "SELECT * FROM th_news ORDER BY news_date DESC LIMIT 3"; $res = db_query($SQLStr); $page= isset($_GET['page']) ? $_GET['page'] : '';//070822事件:可能因主機端版本升級造成page的Notice: Undefined index,但加上左方敘述後解決! $now_page = $page; if($now_page == "") { $now_page = 0; } $show_num = 10; $record_begin = $now_page * $show_num; //??????? $record_show = $show_num; //???????? $SQLStr = "SELECT * FROM th_gt WHERE gt_visible='1' ORDER BY gt_date DESC LIMIT $record_begin, $record_show"; $res2 = db_query($SQLStr); ?> include("head.html"); ?>
|