当php提示不能把对象转换某种类型数据时的解决方法
更新:HHH   时间:2023-1-7


php错误的提示如下:

Catchable fatal error: Object of class Paging could not be converted to string

错误语句而且如果你用zendstudio的还不提示错误:

$article=$this->db->selectArrs('select  blog_article.*,blog_class.name from blog_article left join blog_class  on (blog_article.typeid=blog_class.id)  order by  id desc  limit '.$this->Page->startPage . $this->Page-paging.' ;');

正确语句下:

$article=$this->db->selectArrs('select  blog_article.*,blog_class.name from blog_article left join blog_class  on (blog_article.typeid=blog_class.id)  order by  id desc  limit '.$this->Page->startPage . $this->Page->paging.' ;');

就是少了个>,被坑死了,发本帖提示自己需要注意

返回web开发教程...