Hello Everyone, I have a question I don't have any code yet because I haven't begun to program this yet I'm just trying to get the logic down packed prior to starting. Here is my question:
If I use an array to return a result set from a mysql database how can I display the results where I want them. For example if I am displaying 5 pictures on a row and there are 10 pictures on the database how do I get pictures 6 through 10 on the second row. And expanding on this idea what about a limit of say 20 pictures per page with a database that has 40 pictures how can I then direct the left over pictures to the next page.
Right now I'm going to program a separate DB for every 5 pictures but I know there has to be a better way. I know I don't have code but I'm looking only for ideas so I can try to code it myself. Any ideas and/or suggestions are more than welcome. Thanks
Programz
If I use an array to return a result set from a mysql database how can I display the results where I want them. For example if I am displaying 5 pictures on a row and there are 10 pictures on the database how do I get pictures 6 through 10 on the second row. And expanding on this idea what about a limit of say 20 pictures per page with a database that has 40 pictures how can I then direct the left over pictures to the next page.
Right now I'm going to program a separate DB for every 5 pictures but I know there has to be a better way. I know I don't have code but I'm looking only for ideas so I can try to code it myself. Any ideas and/or suggestions are more than welcome. Thanks
Programz