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
#22

[eluser]JPrieto[/eluser]
i know how to display the word next in pagination
i do it as follows:

Code:
$config['next_link'] = 'Next';

but how do you display "previous" ??

$config['prev_link'] = 'Proximo';

Nevermind

i just tried it

and that was it

thanks guys
#23

[eluser]JPrieto[/eluser]
hi again

okay .. so the code works fine now

but...

do you know what line of code in the view file
that i should add

to also display the table record number?

regardless of the id number (the id is the table field which enumerates)

this is a tough one

anyone knows how?

please.




Theme © iAndrew 2016 - Forum software by © MyBB