$pages) { $page = 1; } if($page < 1) { $page = 1; } $start = ($page-1)*$num; if(!empty($page)) { $page_title = "第".$page.'頁(yè)'; } else { $page_title = ''; } $sql = "SELECT id, title, des, date, htmlurl FROM article $where ORDER BY date DESC, id DESC LIMIT $start, $num"; $res = mysql_query($sql); while($rows = mysql_fetch_array($res)) { $list[] = "\r\n
".$rows['date']."".$rows['title']."
\r\n".$rows['des']."