请问像村子上的导航怎么实现好!
像这样。xxx>xxx>xxxx 以前我看过有介绍这方面的帖子可是怎...
= $offset && $tc $line["comment"] = linkurl($line["comment"]);dispparent($line); while(list($num,$resval) = each($dup)){ $line2 = explode("" name=description>
作者 lihuixi 发布于 2003-07-01 分类:php基础编程
function dispmes($data,$offset){
global $CONF_theme;
global $CONF_pagemax;
$tc = 0;
$dup = $data; //这行和下一行有错了
$dup = array_reverse($dup);
while(list($key,$val) = each($data)){
$line = explode("][",$val);
$line = assoc($line);
if($line["parent"] == 0){
if($tc >= $offset && $tc < ($CONF_pagemax + $offset)){
$line["comment"] = linkurl($line["comment"]);dispparent($line);
while(list($num,$resval) = each($dup)){
$line2 = explode("][",$resval);
$line2 = assoc($line2);
if($line2["parent"] == $line["ID"]){
$line2["comment"] = linkurl($line2["comment"]);
dispchild($line2);
}
}
closeres();
reset($dup);
}
$tc++;
}
}
pagenavi($tc,$offset);
modform();
}
提示的错误是:Warning: Argument to array_reverse() should be an array in lib.php on line 29
Warning: Variable passed to each() is not an array or object in lib.php on line 30
逛论坛交流:留言回复时的一段出错了
???
看不出错误啊!
是不是符号问题?
好象是 array_reverse() 函数出错
2 条回复
回复