Hi,

Can anybody, give me some sample coding to list out the ouput by page wise in PHP.

Example:
                PAGE 1 2 3 4 NEXT PREVIOUS

I needs to use this concept in my project. For example, in my database table, am having 1500 records with the field 'id' and with the field 'name'.

if i click page 1, it should show me first 0 to 100 records(id and name) and then if click page 2, it should show me 101 to 200 records and i should goes upto 1500 records.


Please help me out with sample coding. Thanks in advance

I suggest you search this forum for 'pagination'.

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.