Jump to content

Maximum Limit Per Page


arunpatal

Recommended Posts

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 :happy-04:

 

We will chat soon with new problem :happy-04:

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.