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
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

Link to comment
Share on other sites

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

 

Yes, I am aware of what it is you want to do.

 

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

 

I told you what the term to search for is, seek and you shall find.

Link to comment
Share on other sites

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.