I have a basic pagenation script working on one of my pages. It simply splits the info form my database and echos the data on the page. At the bottom of the page I have hyperlinked numbers. Although I would like to change the numbers at the bottom to a dropdown menu listing the page numbers. Also I would like to add a next and previous hyperlink to the script. As I am a PHP noob I am not sure how I go about this, any idea's guys?
This is the current code I am using to display the hyperlinked numbers at the bottom of my page.
$totalresults = $totalresults / $limit;
$totalpages = round("$totalresults");
$i = 1;
while($i<=$totalpages){
echo("<a href='/test/pagenationpublished3.php?published=$search&viewpage=$i' style='text-decoration: none'>$i </a>");
$i++;
}
Thanks in advance
Kris