Pagination
Posted: Fri Aug 24, 2007 1:16 am
I have created a simple pagination. Now on a page display.php i want to display all the titles as a link
currently i have
Instead i want something like <a href="<?php echo $row['id']">$row['title']</a>
so that for corresponding id i get a corresponding page.
Also i want to give a link to last page . How to know the page number of last page.
currently i have
Code: Select all
while($row = mysql_fetch_array($sql)){
// Build your formatted results here.
echo $row['id']."<br />";
echo $row['content']."<br />";
}so that for corresponding id i get a corresponding page.
Also i want to give a link to last page . How to know the page number of last page.