Pointing to a table record number? Still Open (See pg 2) |
[eluser]SpooF[/eluser]
Code: function display($current = 0) Code: $this->load->library('pagination');
[eluser]JPrieto[/eluser]
thank you thank you thank you wow -- it works oops, sorry about the "wow" lol just one question.... page 2 is NOT linkable whenever I am in page 1 but page 2 is linkable from any other page why you think this is so? thanks
[eluser]SpooF[/eluser]
Are you sure your on page 1? The number that is displayed in the URL is where the sql starts, so add 1 to it and it will give you your current page. Thats why its defaults to 0 in the display function.
[eluser]JPrieto[/eluser]
page 1 displays as soon as i go to the site but page 2 is never linkable when in page 1 page 2 is linkable when i'm in any other page [except when in page 1]
[eluser]SpooF[/eluser]
Did you edit the code? Also when you go to page 1, what is the url in the address?
[eluser]JPrieto[/eluser]
[quote author="SpooF" date="1243834273"]Did you edit the code? Also when you go to page 1, what is the url in the address?[/quote] yes i edited everything works fine except that page 2 is never linkable when in page 1 when in page 1 the url is exactly this http://localhost/site1/index.php/products/display/ when in page 2 the url is this http://localhost/site1/index.php/products/display/1 when in page 3 the url is this http://localhost/site1/index.php/products/display/2 etc so.... everything works fine except that page 2 is never linkable when in page 1 how can i fix it? thanks
[eluser]JPrieto[/eluser]
[quote author="SpooF" date="1243834919"]Past the code you are using[/quote] ========================= VIEWS FILE ========================= Code: <html> ============================== CONTROLLER ============================== Code: <?php I am applying your code to a page that displays a product with a title,desc,price,image one product per page thanks
[eluser]JPrieto[/eluser]
i just noticed also that when in page 1 page 1 is still linkable while page 2 is not - but page is indeed in bold whereas when in any other page -- except page 1 - the page i'm in is in bold and not linkable but page 1 is still linkable when I am in it and page 2 is not linkable but is in bold
[eluser]JPrieto[/eluser]
i simplified views file for easier debugging it is as i use it now page 2 problem when in page 1 still there |
Welcome Guest, Not a member yet? Register Sign In |