include("th_admin/conec/db_conn.php");
$SQLStr = "SELECT * FROM th_news ORDER BY news_date DESC LIMIT 3";
$res = db_query($SQLStr);
//定義頁數
$now_page = $page;
if($now_page == "")
{
$now_page = 0;
}
$show_num = 10;
$record_begin = $now_page * $show_num; //???????
$record_show = $show_num; //????????
$SQLStr_C = "SELECT count(*) FROM th_gt";
$res_C = db_query($SQLStr_C);
list($Total) = mysql_fetch_row($res_C);
//???????
if(($record_begin + $record_show) > $Total)
{
$record_show = $Total - $record_begin;
}
//定義頁數
?>
$SQLStr = "SELECT * FROM th_gt WHERE gt_id = '$id'";
$res = db_query($SQLStr);
$row = db_fetch_array($res);
?>
include("head.html"); ?>
 |
|
 |
include("memlogin.php"); ?> include("lmenu_new.php"); ?> include("marquee.php"); ?> |
include("news_ad.php"); ?>
|
|
include("rmenu_new.php"); ?>
|
|
include("foot.html"); ?>