程序如下:<?phpfunction typelinks($idd){ //global dsql; $row = 12;$titlelen = 50;$dsql->SetQuery("Select * from `#@__flink` where ischeck>0 and typeid='$idd' order by sortrank asc");$dsql->Execute();$revalue = ""; for($i=1;$i<=$row;$i++){if($dbrow=$dsql->GetObject()){$wtitle = cn_substr($dbrow->webname,$titlelen);$revalue.= "<a href='".$dbrow->url."' target='_blank'>$wtitle</a>";if( $i % 6 == 0){$revalue.="<br>" ; }}if(!$dbrow) break;}return $revalue;}?> 函数调用:<?php echo typelinks(2) ?>报错提示:Fatal error: Call to a member function on a non-object in 请高手帮忙解决下是什么问题?
- 1 回答
- 0 关注
- 1369 浏览
添加回答
举报
0/150
提交
取消