0) { $row = mysql_fetch_array($result); $tid = $row["tid"]; $author = $row["author"]; $heading = $row["heading"]; $intro = $row["intro"]; mysql_free_result($result); $sql2 = "select * from sub_topic where tid = $tid"; $result2 = mysql_query($sql2); $num2 = mysql_num_rows($result2); if ($num2 > 0) { for ($i=0; $i < $num2; ++$i) { $row2 = mysql_fetch_array($result2); $sid2[$i] = $row2["sid"]; $author2[$i] = $row2["author"]; $heading2[$i] = $row2["heading"]; } mysql_free_result($result2); } } ?> CATHOLIC H.K. DIOCESAN VOCATION COMMISSION






">  有 以 下 的 意 見 :

=1) { print " "; print "前一頁意見"; print " "; print " "; } // print page links index for ($i=1; $i<=$no_page; $i++) { if ($i == $page) print " $i "; else { print " "; print "$i "; } } if ($page*$msg_page < $no_result) { print " "; print " "; print "下一頁意見"; print " "; } } ?>