Still getting to grips with PHP, and having a bit of a problem.
Scenario:
I have a search page.. when submitted returns the results page. pretty straightforward, but...
In my results page, i make a call to DB according to the user inputs, however i only want to display say 10 items per page.
If my links to the other items are basically links to the same page, but displaying the next 10 items and so on, l figure I have to pass the entire result set as a variable from the 1st page to the 2nd and so on, however:
a) is this a bad idea because potentially lots of data in the result set needs to be passed ? will this slow things up ?
b) how do i get specific rows of the result set so that i can dislpay the correct rows according to what page the user is currently on. ie rows 1-10 for 1st page 11-20 for 2nd page and so on, or does a pointer stay on the results set at the last row i accessed (despite having being passed between pages )?
Or is there a much better way to do it ?
Any suggestions would be magic 🙂