murdocsvan
Web Programmer
- Messages
- 896
- Location
- Surrey, UK
I am trying to make a website where the content is based on Mysql database tables. Basically the content is a MySql table of names, which in turn are requested by the PHP on the page and put into an <a href> link. The link in turn, is itself a database query. This then links to the next page and is intended to fill a similar HTML table on the following page with Names in the same way which are turned into links with PHP coding. This process repeats itself several times.
However...
What i need it to do is populate the Following page with links in the same way as the previous page BASED on what page the user was previously on.
I've thought about it hard and the closest thing i can find to a solution is using the PHP Session command.
The way this would work is when a page is loaded, it takes the session written by the previous page, and loads the HTML table based on that session. it then writes to the session about the current table being viewed for the next page to read. this repeats itself as you go further down the tree.
can anyone tell me if im approaching this in a wrong way?
However...
What i need it to do is populate the Following page with links in the same way as the previous page BASED on what page the user was previously on.
I've thought about it hard and the closest thing i can find to a solution is using the PHP Session command.
The way this would work is when a page is loaded, it takes the session written by the previous page, and loads the HTML table based on that session. it then writes to the session about the current table being viewed for the next page to read. this repeats itself as you go further down the tree.
can anyone tell me if im approaching this in a wrong way?