squalle
10-20-2007, 03:09 AM
Ok, I've searched and searched. I've tried modifying other scripts, etc. Can't seem to get this to work. :(
What I'd like to know is how to display search results from a ff database by page, so if there are 22 results, it will display 5 at a time. The problem I run into while looking for tutorials, etc, is that most people tend to overdo it. I would like some insight on how to do this very simply.
The testing database I have is small, 22 items, 2 fields per line. Like this:
1|Item 1
2|Item 2
...
21|Item 21
22|Item 22
And the HTML on the page would be just a simple table row for each line of the database, like:
<table>
<tr>
<td>Item 1</td>
</tr>
...
<tr>
<td>Item 5</td>
</tr>
<tr>
<td><a href="...">NEXT</a></td>
</tr>
</table>
I would love it if someone could simplify the code snippet to display 5 items at a time with Next and Back links to the next page.
Thanks,
Squalle
What I'd like to know is how to display search results from a ff database by page, so if there are 22 results, it will display 5 at a time. The problem I run into while looking for tutorials, etc, is that most people tend to overdo it. I would like some insight on how to do this very simply.
The testing database I have is small, 22 items, 2 fields per line. Like this:
1|Item 1
2|Item 2
...
21|Item 21
22|Item 22
And the HTML on the page would be just a simple table row for each line of the database, like:
<table>
<tr>
<td>Item 1</td>
</tr>
...
<tr>
<td>Item 5</td>
</tr>
<tr>
<td><a href="...">NEXT</a></td>
</tr>
</table>
I would love it if someone could simplify the code snippet to display 5 items at a time with Next and Back links to the next page.
Thanks,
Squalle