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!
Is there any samples code for pagination for multiple criteria search?
For example, allow 20records displayed in 1page, then next 20records in second page.
Anyone can help me? Thanks
Last edited by lala on Sat Mar 26, 2011 8:30 am, edited 1 time in total.
Search for "php mysql pagination tutorial" on google. There are lots of good ready made tutorials with good code explanations found already on the first search results.
divedj wrote:Search for "php mysql pagination tutorial" on google. There are lots of good ready made tutorials with good code explanations found already on the first search results.
Yea, I did search it.. I have some problem in displaying join table record... It can calculate how many page but cant show the result out.. I dont know what is the problem yet
pagination handles the results of a query. It is the design of your query that is the real issue. Try combining the query into one
ie where (field01 like needle01 AND field02 LIKE needle02) OR field02 LIKE needle01
litebearer wrote:pagination handles the results of a query. It is the design of your query that is the real issue. Try combining the query into one
ie where (field01 like needle01 AND field02 LIKE needle02) OR field02 LIKE needle01
hi litebearer,
I can do pagination for static query and query for multiple search query separately.. But I fail to combine both of it because what pagination that I did is call from other pages. Do u hv any sample dat show the both of its function. Thanks