Welcome Guest, Not a member yet? Register   Sign In
function num_rows() Problem, well in localhost but not working on a web hosting
#3

[eluser]changereturnssuccess[/eluser]
thanks for answering,

the controller is this

Code:
class Noticias extends Controller{
function Noticias(){
parent::Controller();
$this->load->scaffolding('noticias');
}

function index()
{
$this->load->view('noticias/header');

$this->load->library('pagination');
$config['base_url'] = base_url()."index.php/noticias/index/";
$config['total_rows'] = $this->db->count_all_results('noticias');
$config['per_page'] = '3';    


$this->pagination->initialize($config);        

$variables['query'] = $this->db->get('noticias', $config['per_page'], (int)$this->uri->segment(3));
$this->load->view('noticias/index', $variables);

$this->load->view('noticias/pie');

}


I changed my config.php to function in the hosting, and also database.php, these two inside the config folder.


some syntax problem can exist in the code or hosting?

thanks


Messages In This Thread
function num_rows() Problem, well in localhost but not working on a web hosting - by El Forum - 03-15-2010, 02:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB