Fatal error?? - 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?? (/showthread.php?tid=9277) |
Fatal error?? - El Forum - 06-19-2008 [eluser]old_guy[/eluser] I'm getting the following error message "Fatal error: Call to undefined method CI_DB_mysql_driver::num_rows()" and it's pointing to this line of code "if ($query->num_rows() > 0)" inside a model. Any ideas as to why? Fatal error?? - El Forum - 06-19-2008 [eluser]gtech[/eluser] it depends what $query is and what db function call you are setting it with. Why not print_r($query); and see what it contains (you can do that in the model temporarily as long as you take it out again) |