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

Thanks techneke I was consercrating too much on the controller file and missed that error in the html code. I'm sorry but it still doesn't work. This is the error I get even after I corrected the view file: "Fatal error: Call to a member function get() on a non-object in /home/danadria/public_html/system/application/controllers/blog.php on line 12"
That would be line 12 in my controller file

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:
class Blog extends Controller{
  function Blog(){
     $this->load->library('database'); //load database class

Thanks pickupman. The autoload file was my problem. I had added the database on the wrong line. I don't know where my head was that day. I rally appreciate you and techneke for your patience and help.

Theme © iAndrew 2016 - Forum software by © MyBB