![]() |
CODEIGNITER call to a member function num rows on boolean - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: CODEIGNITER call to a member function num rows on boolean (/showthread.php?tid=64503) |
CODEIGNITER call to a member function num rows on boolean - referag - 02-26-2016 Please i have an issue with codeigniter. when i try to log here is the result: Fatal error: Call to a member function num_rows() on boolean in D:\xampp\htdocs\procurementSys\application\models\login_model.php on line 19. Below tho code of the relative file: Code: <?php I kept searching for a solution and found nothing. CI VERSION 2.1.2 thanks RE: CODEIGNITER call to a member function num rows on boolean - Bhavesh - 02-26-2016 Hi Change Below Code: PHP Code: if($query->num_rows() == 1) // if the affected number of rows is one---LINE 19--- PHP Code: if($query !== FALSE && $query->num_rows() == 1) // if the affected number of rows is one---LINE 19--- |