欢迎光临第一亲子网

一个PHP+MSSQL分页的例子(3)

2013-9-3 | 来源:第一亲子网 | 点击:

导读: p;牋牋牋牋牋牋牋牋牋牋牋牋牋牋}牋//while echo " "; echo " "; echo " "; echo " "; 牋爄f ($page1) { echo "首页 "; 牋牋牋牋牋牋牋牋爙 牋if ($page>1) {牋 牋$upage=$page-1;牋 echo "上一页 "; 牋牋牋牋牋牋牋爙 牋for($y=1;$y 上一页123 ...

p;牋牋牋牋牋牋牋牋牋牋牋牋牋牋}牋//while
echo " ";
echo " ";
echo " ";
echo "
";
牋爄f ($page<>1) {
echo "PHP_SELF?page=1>首页 ";
牋牋牋牋牋牋牋牋爙
牋if ($page>1) {牋
牋$upage=$page-1;牋
echo "PHP_SELF?page=$upage>上一页 ";
牋牋牋牋牋牋牋爙
牋for($y=1;$y<=$pages;$y++) {
牋爀cho "PHP_SELF?page=$y>$y ";
牋牋牋牋牋牋牋牋牋牋牋牋牋牋爙
牋if ($page<$pages) {
牋$npage=$page+1;
echo "PHP_SELF?page=$npage>下一页 ";
牋牋牋牋牋牋牋牋牋牋}
牋if ($page<>$pages)牋{
echo "PHP_SELF?page=$pages>尾页 ";
牋牋牋牋牋牋牋牋牋牋牋}
echo "
";
echo " ";
echo " ";
echo "
";
?> 

上一页123

上一篇:一个PHP+MSSQL分页的例子(2)

下一篇:PHP脚本的10个技巧(1)