require "include/setup.php"; $link=mysql_connect($DB_SERVER,$DB_USER,$DB_PASS); mysql_select_db($DB_NAME,$link); mysql_query("SET NAMES utf8", $link); //計算留言數 $serial=$_GET["serial"]; $page_num=$_GET["page_num"]; $sort=$_GET["sort"]; $str="select count(*) from $NEWS_TBL"; $list =mysql_query($str,$link); list($news_count) = mysql_fetch_row($list); function subject($subjectID) { require "include/setup.php"; $link=mysql_connect($DB_SERVER,$DB_USER,$DB_PASS); mysql_select_db($DB_NAME,$link); mysql_query("SET NAMES utf8", $link); $str5="select subject.Description from subject where subject.SubjectID LIKE '%$subjectID%'"; $list5=mysql_query($str5,$link); list($subject) = mysql_fetch_row($list5); echo "$subject "; } ?>
發佈時間 | 日期 | 標題 | 類別 | 主題 | 人氣值 |
$PubDay | $Day | $title | $category | "; $valueb=explode(' ',$subjectID); subject($valueb[0]); echo " | $count |