Fatal error: Call to a member 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: Fatal error: Call to a member function num_rows() on a non-object (/showthread.php?tid=40736) |
Fatal error: Call to a member function num_rows() on a non-object - El Forum - 04-17-2011 [eluser]GesterX[/eluser] I have a simple login function in my model as follows: Code: <?php And this is called from my controller in the following function: Code: function process_login() { Whenever I try to do a login (with correct or incorrect credentials) I get the following error: Fatal error: Call to a member function num_rows() on a non-object in C:\PROJECT-PATH\LoginModel.php on line 13 Any ideas guys? I've been banging my head and googling for about2 hours with no luck! Fatal error: Call to a member function num_rows() on a non-object - El Forum - 04-17-2011 [eluser]GesterX[/eluser] DOH! As soon as I posted this I noticed I had mispelt my db name in the db config! Never mind... |