Welcome Guest, Not a member yet? Register   Sign In
Insert Error
#12

[eluser]pickupman[/eluser]
Make sure you have loaded the database class. In /application/config/autoload.php check if you have autoloaded the database library. If it is not add it to the file at around line 42. Also make sure you have configured your database connection in /application/config/database.php.
If you would rather load the database libary in your controller you may do by using:
Code:
class Blog extends Controller{
  
  function Blog(){
     parent::Controller();
     $this->load->library('database'); //load database class
  }
}


Messages In This Thread
Insert Error - by El Forum - 05-02-2010, 02:45 AM
Insert Error - by El Forum - 05-02-2010, 09:05 AM
Insert Error - by El Forum - 05-03-2010, 05:15 AM
Insert Error - by El Forum - 05-03-2010, 07:03 AM
Insert Error - by El Forum - 05-03-2010, 08:21 AM
Insert Error - by El Forum - 05-03-2010, 11:42 AM
Insert Error - by El Forum - 05-03-2010, 12:02 PM
Insert Error - by El Forum - 05-03-2010, 12:37 PM
Insert Error - by El Forum - 05-03-2010, 02:29 PM
Insert Error - by El Forum - 05-03-2010, 02:31 PM
Insert Error - by El Forum - 05-03-2010, 03:46 PM
Insert Error - by El Forum - 05-03-2010, 05:59 PM
Insert Error - by El Forum - 05-04-2010, 05:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB