Jump to content

codeigniter help with retrieving info from db


dadamssg

Recommended Posts

so im going their there tutorial and this line of code is throwing an error. i have done everything else correctly.

$data['query'] = $this->db->get('test');

 

i get this

 

Fatal error: Call to a member function get() on a non-object in /controllers/blog.php on line 16

 

and yes 'test' is the name of my table in my database. And it does have several rows

 

anyone know what im doing wrong????

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.