codeigniter fatal error, trying to read database

Posted by ThomasReggi on Stack Overflow See other posts from Stack Overflow or by ThomasReggi
Published on 2010-06-17T19:12:10Z Indexed on 2010/06/17 19:23 UTC
Read the original article Hit count: 216

Filed under:
|
|
|

Fatal error: Call to a member function result() on a non-object in C:\wamp\www\system\application\models\users_model.php on line 8

   <?php

    class Users_model extends Model {

      function get_records()
      {
        $query = $this->db->get('users');
        return $query->result();
      }

    }
    ?>

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql