Welcome Guest, Not a member yet? Register   Sign In
Fatal error: Call to undefined method CI_DB_mysql_driver::get()
#1

[eluser]sore eyes[/eluser]
I've just switched from CI 1.7.2 to 2.1 and am getting above error.

Code:
function TotalNumberOfProducts(){
   $data = $this->db->get('products')->num_rows();
   return $data;
  }
Any ideas?
#2

[eluser]Aken[/eluser]
There are a lot of changes since 1.7.2 - you'll need to look through your application folder and whatnot, and see where the coding styles differ from those in the User Guide. It could be a lot of different things, so look around and see if you can narrow it down.




Theme © iAndrew 2016 - Forum software by © MyBB