Hi,
I am a novice PHP user and would like to the following function.
I have a series of list pages for a documentations in a folder.
On each page, I would like a clickable pagination guide.
- Each page contains a thumbnail of the page
- In the folder "documentation", there may be "n" number of files = pages.
- File name contains the page number of the file.
i.e. general00.php, general01.php, general02.php, ....general32.php
- On each page, page links are to be placed.
I would like the pagenation to appear as:
|< < current page > >|
total # of pages
|< First page
< Previous page
What I believe I need are:
1. to get extract the page number from the file name (itself) and set the $current_page variable
2. to get the maximum number from the list of files in the folder
and set the $maximum_page
I would appreciate your kind help.
Regards,
JDN