• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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)


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.