Link to home
Start Free TrialLog in
Avatar of usssar
usssar

asked on

PHP paging

Hello, i'm doing PHP paging, to split results from mysql database into some pages.
I googled and i found how to make paging like that:
index.php?page=1, index.php?page=2 and so on
but what i want is to make like this:
index-1.php, index-2.php and so on. As soon as in db more data, it creates index-3.php and so on... How to make that? HELP :)
ASKER CERTIFIED SOLUTION
Avatar of dr_dedo
dr_dedo
Flag of Egypt image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Alex
but what i want is to make like this:
index-1.php, index-2.php and so on. As soon as in db more data, it creates index-3.php and so on... How to make that? HELP :)

>> are you trying to hide the query string values OR need to create files for more data ...?

As ***dr_dedo*** said, you can create files ... but is not good practice to create as many as for all the DB records...

actually what are you trying to archive out of this.??

Want hide something to the user or ??
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial