I’m in the process of learning PHP, and have two questions regarding website structures.
Most of my websites use the following containers: banner, footer, navigator and content (some are grouped within another general container). When making such websites, I have first made the following webpages: banner.php, navigator.php and footer.php. These three are inserted into index.php using the require() PHP code. If the website includes a main webpage, a picture webpage and a link webpage, I import the banner, navigator and footer webpages into each of them, and create the unique content in the content containers. [B]Is this good practise?
Second, I have seen some webpages that use an entirely different structure, which may seem more efficient. Instead of navigating from index.php, to pictures.php, to links.php etc, you navigate from index.php?categoryid=1, to index.php?categoryid=2, to index.php?categoryid=3, etc. [B]How is this accomplished?[URL=”http://www.episteme.no/index.php?categoryid=1″]http://www.episteme.no/index.php?categoryid=1
Any advice is greatly appreciated.