CodeIgniter Forums

Full Version: Fatal error??
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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?

El Forum

[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)