Welcome Guest, Not a member yet? Register   Sign In
Pointing to a table record number? Still Open (See pg 2)
#21

[eluser]JPrieto[/eluser]
PROBLEM SOLVED

i changed the order of the lines
of the code you gave me
as follows:

Code:
function display($current = 0)
    {
        $config['base_url'] = 'http://localhost/site1/index.php/products/display/';
        $config['total_rows'] = $this->db->count_all('productos');
        $config['num_links'] = 3;
        $config['first_link'] = 'Primero';
        $config['next_link'] = 'Proximo';
        $config['last_link'] = 'Ultimo';
        $config['per_page'] = '1';
        $data['pagein'] = $this->pagination->create_links();
        $data['query'] = $this->db->get('productos',1,$current);
        $this->pagination->initialize($config);
        $this->load->view('products_view',$data);
    }

see last two lines
now it worked perfect

again i thank you
i learned much from you

thanks


Messages In This Thread
Pointing to a table record number? Still Open (See pg 2) - by El Forum - 05-31-2009, 07:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB