pagination problem
i tried to implement coding (refer to how to create a pagination in php) in my page, to show some products. Here the case : if the number my products from a category, less then the number of perpage (in your coding written as $perpage = xx; in each page), in my webpage, the pagination will display like this 1 2 Next, when i clik 2, the page is empty. It should no pagination in that pay.why it can happened?..thank for your help
2 Answers
Ampicillin With Out A Dr Amoxicillin Potassium Clavu Tab 500mg Farmaco Priligy 30 Mg <a href=http://dan5325.com>viagra</a> Acquistare Levitra Bayer Buy Cipro Overseas
Posted: Jeadyelty 0 of 0 people found this answer helpful. Did you? Yes No
the pagination has one purose is to show the pages only, to show the products you have to make something like:
$sql = @mysql_query("select * FROM `products` order by id desc LIMIT $startpoint,$perpage"); while($Row = mysql_fetch_array($sql)) { //your code } Posted: MacOS 1 of 1 people found this answer helpful. Did you? Yes No |
© Advanced Web Core. All rights reserved