0

Hello,i have the following html page.

<html>
<head>
</head>
<body>
<div class="container">

<div class="8">
<?php $firstname['1']; ?>
</div>

<div class="8">
<?php $firstname['2']; ?>
</div>

<div class="8 last">
<?php $firstname['3']; ?>
</div>

<div class="8">
<?php $firstname['4']; ?>
</div>

<div class="8">
<?php $firstname['5']; ?>
</div>

<div class="8 last">
<?php $firstname['6']; ?>
</div>
<div class="24">
<?php $pagination; ?>
</div>
</div>
</body>
</html>

As you see,i getting records from the database and displaying them.What i want is if a user clicks page two,$firstname; becomes $firstname; since 6 was the last record on page one and $firstname; becomes 8 and so forth.Is this the best approach or is there a better way?.
I

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by boot-baby-boot
0

You will have to pass a page number back to your PHP file, and retrieve the next set of data. Search this forum for pagination.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.