Jump to content

Limiting the no. item in a page


Recommended Posts

Hi All,

 

I just new to this web site  & to this forum

 

I was developing online shopping  cart. On my show products page item of one category is shown in one page. if there is 500 items of one category then the user get puzzled to  search one item in that list.

 

So I want make it page wise

 

like only 50 items will be shown in one page, for the next 50 items the user have to click next,

 

but there must be only one page linking the database for items & showing it. If any one can & then please give me the source code

Link to comment
https://forums.phpfreaks.com/topic/115946-limiting-the-no-item-in-a-page/
Share on other sites

I just want to limit the maximum number of item in a page.

 

For example in a shopping cart there are many items of different category

 

like Product X of Category Y is 500

so if i make query to the database "select product from productlist where productname='X' and category='y';

 

then the ouput will 500 item if those items are displayed in one page then the user will puzzled in searching of a product named X.1

 

so I want to make those items to be displayed in multiple pages.

 

like productinfo.php?page=1 >> It will output first 50 item from the list

    productinfo.php?page=2 >> It will output next 50 items & so on

 

So If any one help mefor this then I will great full to him/her.

 

Thank you

Rittwick Banerjee

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.