用户
 找回密码
 入住 CI 中国社区
搜索
12
返回列表 发新帖
楼主: huitianhappy
收起左侧

Fatal error: Call to a member function result_array() on a non-object in /hom...

[复制链接]
发表于 2012-12-3 09:20:32 | 显示全部楼层
数据库里面有记录吗? 你的都没查到什么东西啊,当然也访问不到result_array()了,你看我的print_r($query) 会是:[result_array] =>Array() 下面有东东就可以访问到了~
CI_DB_mysql_result Object ( [conn_id] => Resource id #29 [result_id] => Resource id #47 [result_array] => Array ( [0] => Array ( [id] => 312 [cid] => 3 [title] => 你妹妹的M [recommend] => 0 [pic] => [photos] => [source] => [author] => [description] => [addtime] => [content] => 震荡地奔 [hits] => 0 [createtime] => [db0] => [db1] => [db2] => [db3] => [db4] => [db5] => [db6] => [db7] => [db8] => [db9] => [cname] => 关于我们 ) [1] => Array ( [id] => 311 [cid] => 3 [title] => cvasdfa [recommend] => 1 [pic] => [photos] => [source] => [author] => [description] => [addtime] => fdsa [content] => 大法师 [hits] => 0 [createtime] => [db0] => [db1] => [db2] => [db3] => [db4] => [db5] => [db6] => [db7] => [db8] => [db9] => [cname] => 关于我们 ) [2] => Array ( [id] => 3 [cid] => 3 [title] => 你妹妹的B [recommend] => 1 [pic] => uploads/201211/3fd736a6f423c093fd7c4ca66ed2ad09.jpg [photos] => [source] => [author] => [description] => 魂牵梦萦 [addtime] => [content] => 草你妹妹的 [hits] => 0 [createtime] => [db0] => [db1] => [db2] => [db3] => [db4] => [db5] => [db6] => [db7] => [db8] => [db9] => [cname] => 关于我们 ) ) [result_object] => Array ( ) [custom_result_object] => Array ( ) [current_row] => 0 [num_rows] => 3 [row_data] => )

本版积分规则