title: Call to undefined method CI_DB_mysql_driver::num_rows()
body: <pre><code>&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  
  class Welcome_model extends CI_Model {
  
        public function select(){
  
                    $this-&gt;db-&gt;get('av_home');
                    echo $this-&gt;db-&gt;num_rows();
  
        }
  }
  </code></pre>
  
  <p>Above code gives error,</p>
  
  <blockquote>
    <p>Call to undefined method CI_DB_mysql_driver::num_rows()</p>
  </blockquote>