Welcome Guest, Not a member yet? Register   Sign In
Fatal error??
#1

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

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




Theme © iAndrew 2016 - Forum software by © MyBB