[eluser]mrwilson1[/eluser]
I am getting errors that indicate to me that my database is not connecting
<code>Fatal error: Call to a member function select() on a non-object in /home/shivabe1/public_html/ci/system/application/models/twitter_model.php on line 46</code>
Line 46 is simply
<code>$this->db->select('last_message');</code>
I know how to check database connection with regular php, but how do you do it with CI? and where?
Do my settings look correctly filled in as far as the first 5? I was getting an error that the database could not connect with the settings given, but all of a sudden that stopped and now I get the above. I did try an if statement in the model if($db) but that didnt do anything
most names changed to protect the innocent
$active_group = "default";
$active_record = TRUE;
$db['default']['hostname'] = "localhost";
$db['default']['username'] = "twit";
$db['default']['password'] = "password";
$db['default']['database'] = "shivabe1_twitter";
$db['default']['dbdriver'] = "mysql";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";
Thanks