Jump to content

How to add a go to end lof page label


Go to solution Solved by Ch0cu3r,

Recommended Posts

Sounds like you are wanting pagination or to limit the results.

 

Here is an older pagination tutorial that uses the deprecated mysql_* functions

http://www.phpfreaks.com/tutorial/basic-pagination

 

If you just need to limit some results can add this to the end of the query

shows one result

LIMIT 1

starting row zero and show one result

LIMIT 0,1

starting row zero and show five results

LIMIT 0,5

starting row ten and show ten results

LIMIT 10,10
  • Solution

So you want to let a user jump to bottom of the page by clicking the link? No need for PHP just use a named anchor tag example

<a href="#bottom">Jump to bottom</a> <!-- link to named anchor tag called bottom -->

<?php
// just to fill out the page with dummy data
for($i = 0; $i < 100000; $i++) {
   echo "$i<br />";
}
?>
<a name="bottom"></a> <!-- named anchor tag called bottom -->
Edited by Ch0cu3r
  • Like 1
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.