file count and file name functions
Posted: Tue May 16, 2006 2:13 pm
I'm trying to write a quick script that creates previous and next buttons. The easiest way I've found to do this is by numbering all the pages and having the previous and next buttons count by linking to the page number (+/-) 1. I've ran into two problems.
1. I need a way to know the total number of pages in the directory so when it gets to the last page it doesn't go to the last page +1.
2. I would like a way to make the file name a variable.
Also, if anyone has any tips on how to search functions to find what you are looking for I'd appreciate.
Thanks in advance.
1. I need a way to know the total number of pages in the directory so when it gets to the last page it doesn't go to the last page +1.
2. I would like a way to make the file name a variable.
Also, if anyone has any tips on how to search functions to find what you are looking for I'd appreciate.
Thanks in advance.