We assume that in a folder there are 11 files renamed with numbers (1.php, 2.php ... 11.php) and all of them have variables with equal names but different values (1.php: var="texto1" ... 2.php: var="texto2"), I need a condition that opens only the first 10 pages in descending order and a echo
in the variable of the first 10, and also a small page navigation system, type: button 1 → from page 1 to 10, button 2 → page 11 to 21 and that these buttons exist in the proportion of pages that exist in the folder, similar to the Google search buttons to find more results:
No need to use database.