How to make php and JavaScript Navigation bar ?

  • Thread starter Thread starter Danne
  • Start date Start date
D

Danne

Guest
I wish to have a code to generate php or JavaScript Navigation bar
similar to this section of yahoo website, used to browse through records and at one point out put the following

Previous 1 .. 11 12 13 14 15 ..100 Next

in that case 100 is the total number of records, is should automatically update.
I wish it to be done using php or JavaScript or both.
A perfect example can be seen on that website http://kankan.xunlei.com/?id=20
It is the best Navigation bar I have seen so far.
 
That is about a days work in PHP so it is beyond the scope of a Yahoo Answer. You can steal the javascript from that website.

You'd set up a MySQL database with a record for each URL that you want. Then use PHP to access that database and query it by picking up the id, such as ?id=20 in a get or post and writing out the code with the selected records.

If you don't know SQL then allow a week to learn enough SQL. If you don't know PHP then allow a couple of weeks to learn enough PHP.
 
Back
Top