当前位置:编程学习 > php >>

[php]帮我看一下伪静态分页的问题

http://localhost/category.php?action=big&type=1&bclassid=11&page=2

RewriteRule ^/category_(.*)_(.*)_(.*)_(\d*)$ /category.php?action=$1&type=$2&bclassid=$3&page=$4

 

能正常显示就是一点分页的时候还是显示是动态的?这是怎么回事,是说得改分页函数吗

 

以下是分页函数实例化

$page_obj = new wind_page("category.php",array("action"=>"big","type"=>1,"bclassid"=>$bclassid),$num, $psize, 5, 1,$page);

补充:[php]伪静态分页怎么改 悬赏分:0 - 离问题结束还有 14 天 23 小时 function wind_page($url,$param,$total, $pagesize = 20, $bar_mun = 10, $style = 1,$this_page = 1,$html_page_val=1,$key = "") //构造函数 function pre_page($color="#909090",$sign=0) //上一页 { if ($this->page > 1) { $str= "<a href=\"category_".sprintf("%02d",$this->page-1).".html\" class=\"AB\"><font color=\"".$this->pre_page_char_color."\">".$this->pre_page_char."</font></a>"; //$str="<a href=\"".$this->url."?"; foreach($this->param as $k=>$v){ $str.=$k."=".$v."&"; } $str.="page=".($this->page-1)."\" >".$this->pre_page_char."</a>"; return $str; } else { // return "<font color=\"$color\">".$this->pre_page_char."</font>"; return "<span class=\"disabled\">上一页</span>"; } } 我的动态地址是这样的 http://localhost/category.php?action=big&type=1&bclassid=11&page=3 怎么改以上的分页类 
		
追问:这个能不能转正静态的啊,这个好橡我不太会这个
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,