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