20"; // 務必要 as t $pagerows = 10; include('page.inc'); $dm1_sql = "select * from customer where age>20 limit $currow,$pagerows"; // limit 後面要自己加上去 include('dm1.inc'); for ($i=0; $i<$dm1_count; $i++) : ... endfor; include('page.inc'); */ if (! isset($pcountonce)) : // 此檔可多次被函入多次,用在上下都顯示頁次 if (! isset($curpage)) : $curpage = 0; $dm4_sql = $countsql; include('dm4.inc'); $t = dm4('t', 0); $totalpages = ceil($t / $pagerows); endif; $currow = $pagerows * $curpage; endif; $pcountonce = 1; // 但只有第一次會作統計 if ($noselect != 1) : echo ""; endif; ?>