CodeIgniter Forums

Full Version: Pagination different between localhost and webs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

Hi all, I;m having difficulties in creating pagination.I'm using the same command in my localhost and my websites( just changing the baseurl's) and its not working. Here is my code :

            $data['hasil'] = $this->mpagination->get_data('tabel_news',$config['per_page'],$this->uri->segment(3));

            $tmpl = array ( 'table_open'  => '<table border="2" cellpadding="2" cellspacing="2" class="mytable">' );

my models filename is mpagination.php
class mpagination extends Model
    function mpagination()    {
    function get_data($tab,$num,$offset)    {
        $query = $this->db->get($tab, $num, $offset);
        return $query;
Help me plz. need help fast T-T

El Forum

BTW, im using PHP 4 as my compiler .thx

El Forum

what does the output of
echo $this->pagination->create_links();
look like in the view?