Jump to content

How to add a go to end lof page label


shmideo

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.