SOLVED --- Godaddy Codeigniter error: function num_rows() on a non-object - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: SOLVED --- Godaddy Codeigniter error: function num_rows() on a non-object (/showthread.php?tid=25296) |
SOLVED --- Godaddy Codeigniter error: function num_rows() on a non-object - El Forum - 12-07-2009 [eluser]yannyannyann[/eluser] Hi guys, I have a site running locally. I uploaded to a godaddy server, and now I can't make it work: Fatal error: Call to a member function num_rows() on a non-object in /home/content/s/p/a/spaceagenda/html/app/models/type_model.php on line 74 Line 74 of the model is this : Code: 72 if ($id!="") $this->db->where('id',$id); I have PHP 5.2.8 on godaddy server. Could it be the version of PHP of CodeIgniter (I work with CI 1.7.2) ? I have tried many things, as I had trouble with htaccess as well. So here is my config: Code: $config['index_page'] = ""; Code: # Options I am really lost, it has been a couple of hours that i have been on this without any success... I looked into the loading of the database library, but it seems to be fine. it is solved ... it was a problem of the mysql deamon that wasnt launched on the hosting side |