Hello Everyone,
I am improving the catalogue website that I built not so long ago, trying to make it more dynamic and I have found many of the answers that I'm looking for from Google and PHPfreaks but would like to get some answers and opinions specific to me.
I am having some issues with the navigation.
Currently the navigation is not dynamic (the product pages are linked to mySQL tables, which lists them but it is nowhere near where I would like it to be)
I am not using a txt file or a table specific to the navigation, I am thinking of using my exisiting 'Room' table (RoomID, RoomName) to list the links I want. Should I also add a column that lists the directory to the desired page, so I would use one variable for the link text then one for the actual link.
My next question is when I am on a room page (/products/bedroom), how do I then add a sub menu on that page to list sub directorys without manually entering the RoomID like "SELECT * FROM furnituretype WHERE roomid = 1" (I have a seperate table for the type of furniture, for instance 1= Wardrobes, 2 = Bedsides, etc). I was thinking I could use a POST but again I am not sure that would be the right way to go. Am I able to take it from the directory that I am in? I have found 'basename($_SERVER['PHP_SELF']);' but that lists index.php.
Any help would be great, I am not looking to be spoon fed (it may look that way) but some advice.
Thanks,