cgmayhemxx Posted June 2, 2010 Share Posted June 2, 2010 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. Quote Link to comment Share on other sites More sharing options...
Psycho Posted June 2, 2010 Share Posted June 2, 2010 use the UNION operator. See tutorial here: http://www.tutorialspoint.com/mysql/mysql-union-keyword.htm Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.