I am a very new / inexperienced web programmer and I am trying to design a site using PHP and MySQL.
I have noticed many dynamically created pages do not display their page name and extension.
Here is an example:
Currently I have 200+ pages of “sets”, which all have their own url’s. I am creating a site that is dynamically generated so that only 1 page is needed to create the “set” display, but when I post links on other social media sites, I want to be able to post a link that contains the name of the set as shown in the above example.
In my current new site design, to get to the set named “Goblin Village” I have assigned that set a number in my database, and I reference it this way:
Here is some of my guesswork of what I need to do, to make the above happen:
- Instead of assigning a number as a primary identifier, I need to assign a unique name (ie: “wizkids-goblin-village” instead of “23” )
- Instead of passing my query info on the URL, I need to store it as session variables.
This is as far as I have gotten.
Could someone please advise what I need to do to make this happen.