arunpatal Posted November 22, 2012 Author Share Posted November 22, 2012 Update the script with this code.. (in page linking section) // If it's not the first page, make a Previous button: if ($current_page != 1) { echo '<a href="products.php?s=' . ($start - $display) . '&p=' . $pages . '">Previous</a> '; } // Make all the numbered pages: for ($i = 1; $i <= $pages; $i++) { if ($i != $current_page) { echo '<a href="products.php?s=' . (($display * ($i - 1))) . '&p=' . $pages . '">' . $i . '</a> '; } else { echo $i . ' '; } } // End of FOR loop. // If it's not the last page, make a Next button: if ($current_page != $pages) { echo '<a href="products.php?s=' . ($start + $display) . '&p=' . $pages . '">Next</a>'; } echo '</p>'; // Close the paragraph. Many Many Thanks Thara Its working now...... I changed $dbs to $link Now it showing link for next page........ Once again thank you so much We will chat soon with new problem Link to comment https://forums.phpfreaks.com/topic/271020-maximum-limit-per-page/page/2/#findComment-1394339 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.