[eluser]JasonS[/eluser]
This should be really simple but I cannot work it out.
This is my error.
Quote:Fatal error: Call to a member function update() on a non-object in /Applications/XAMPP/xamppfiles/htdocs/wpp/admin/system/application/controllers/pages.php on line 65
This is my code.
Code:
65. $this->db->update($this->jdb->table, $this->db, "id='$id'");
The database library is loaded, I can add pages to my site, I can list pages. For some reason, when I run this update function I get the error. Its pretty late where I am, maybe my brain is a bit fried but I have been staring at this for ages and cannot see what is wrong.