Show parts of the result of an SQL statement using PHP

Posted by mouthpiec on Stack Overflow See other posts from Stack Overflow or by mouthpiec
Published on 2010-05-22T07:13:39Z Indexed on 2010/05/22 7:20 UTC
Read the original article Hit count: 163

Filed under:
|
|
|

I have an SQL query which returns a set of data (around 40-50 tuples). I would like to display the results 5 at a time on an HTML page using PHP.

I already managed to have the right SELECT statement, but i am having problems to display the results 5 by 5 using a "more" button.

Can you please help? Note that every time i call the query, the data is being randomized, so it is not possible to set limits and call the query again. I have to find the method to store the results somewhere, and then show them 5 by 5.

© Stack Overflow or respective owner

Related posts about sql

Related posts about select