First of all I'm trying to keep .html extensions on the pages being accessed. I'm trying to use include statements to load the php. I want to establish sessions for users after a login. I created a SQL table with id, username, password, page. The website allows you to view the next page only after accessing the current page. On that page is a link to the next page. I want the 'page' entry to update with each new page that is accessed.
For example: A user views Tableofcontents.html on the page there will be a hidden input 'currentpage' with a value which in this case would be tableofcontents. It would update the 'page' entry in the database for the specific user. As the person goes to the next page, lets say chapter1.html. It would replace tableofcontents with chapter1.
However, I don't want it to replace chapter1 if you re-view tableofcontents.html.
I also would like a guest to be able to view the pages as well. It just wouldn't update the SQL database for their pages viewed.
Giving me programming advice via a link that you didn't even properly give the code of. Not to mention the website that you provided is basically a search engine.
For example: A user views Tableofcontents.html on the page there will be a hidden input 'currentpage' with a value which in this case would be tableofcontents. It would update the 'page' entry in the database for the specific user. As the person goes to the next page, lets say chapter1.html. It would replace tableofcontents with chapter1.
However, I don't want it to replace chapter1 if you re-view tableofcontents.html.
I also would like a guest to be able to view the pages as well. It just wouldn't update the SQL database for their pages viewed.
Giving me programming advice via a link that you didn't even properly give the code of. Not to mention the website that you provided is basically a search engine.