How to create php paging with 2 tables

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cgmayhemxx
Forum Newbie
Posts: 1
Joined: Wed Jun 02, 2010 5:36 pm

How to create php paging with 2 tables

Post by cgmayhemxx »

Hello I just joined this forum and I have a problem. I hope someone can help me about this :). Let say I have 2 tables One called services other one called Forsale basically what i am trying to do is combine the result of these 2 tables and show it to user with page breaks. There are total of 100 records(2 tables combined) so I wanna show 20 records on each page when user clicks next I want it to show next 20 records from both tables. I can do this with one table with no problem but when I try to combine 2 tables it only show the records from the second table which is total of 10 but it doesnt combine it with first table. If you can point me to right direction I would appreciate it.

Thank you in advance.
User avatar
markusn00b
Forum Contributor
Posts: 298
Joined: Sat Oct 20, 2007 2:16 pm
Location: York, England

Re: How to create php paging with 2 tables

Post by markusn00b »

Post the code that's giving you problems. Then we can deduce where you're going wrong. :)
Post Reply