Jump to content

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:

Edited by arunpatal
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.