Android 发表于 2017-3-17 13:52:50

搞半天了一直解决不了这个问题 Trying to get property of non-ob...

本帖最后由 Android 于 2017-3-17 14:26 编辑

查询时   为什么这么写不对啊。。。在自定义类里面。。。

    class Testdb
{
    protected$CI;

    public function_construct()
    {
      $this -> CI =& get_instance();
      $this ->CI-> load -> database();
    }

    public function query_result()
    {
      
      $query = $this -> CI ->db -> query("select * from authorized_user");
    }
}

Android 发表于 2017-3-17 14:50:40

解决了。。。。
页: [1]
查看完整版本: 搞半天了一直解决不了这个问题 Trying to get property of non-ob...