Dear All;
i would like to ask how to divide data among pages like what yahoo mails did when you read your mails for example the first page contains 10 mails when you press next page , the you go to page 2 which contains another 10 mails , i want to make something like this so that i can show my products in a sequence of pages according to my database

Hi,

You have do develop you own logic for that. Their is no direct way. May be you can find some class on phpclasses.net which lets you easily create pagination but I do it without any class. I am pasting here a function from my code which includes pagination. You can get basic idea how it is done. If you have any difficulty understanding the code or have nay question let me know. I can help you create pagination if you paste your code here.

I am attaching code in a file since it is too long.

thanks

dasatti thank you very much i will try it and will tell you if i have any difficulty in understanding the code

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.