Welcome Guest, Not a member yet? Register   Sign In
fatal error:Call to a member function query()
#8

[eluser]MindFeed[/eluser]
Can you please write following line in first place at your index() function and see if database object been created and assigned to CI or not ?

Code:
print "<pre>"; print_r($this);exit;

you should see something like this, [that's oracle I am using, you might see relevant result]

Code:
[db] => CI_DB_oci8_driver Object
        (
            [dbdriver] => oci8
            [_escape_char] => "
            [_count_string] => SELECT COUNT(1) AS
            [_random_keyword] =>  ASC
            [_commit] => 32
            [stmt_id] =>
            [curs_id] =>
            [limit_used] =>
            [error] =>

If not can you please try loading database with the following line in your constructor.

Code:
$this->load->database();


Post the behavior and error if any !

Thanks,
Bhargav


Messages In This Thread
fatal error:Call to a member function query() - by El Forum - 08-28-2009, 06:30 AM
fatal error:Call to a member function query() - by El Forum - 08-28-2009, 06:33 AM
fatal error:Call to a member function query() - by El Forum - 08-28-2009, 06:43 AM
fatal error:Call to a member function query() - by El Forum - 08-28-2009, 06:53 AM
fatal error:Call to a member function query() - by El Forum - 08-28-2009, 06:55 AM
fatal error:Call to a member function query() - by El Forum - 08-28-2009, 10:43 AM
fatal error:Call to a member function query() - by El Forum - 08-28-2009, 09:42 PM
fatal error:Call to a member function query() - by El Forum - 08-31-2009, 08:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB