I am trying to remember a code I used about 6 years ago to fetch certain pages for my website(I haven’t written code in almost 6 years) and I can’t remember how to do it.
and then a code in the content section of my layout and when clicking on that link(or any of my other links) it would then bring up that page’s content in the content section. My problem is:
A) I don’t remember the PHP code that I should be putting in the content section.
B) I don’t remember what I should be saving the pages as; home.php, home.html?
My website is pixelatedempire.net and if you take a quick look at where I’m trying to pull the content up I’m sure you’ll figure it out very quickly.
Here is my source code(please don’t judge too much, I used to be very organized and wrote nice code but like I said I haven’t touched a piece of code in 6(maybe more years) and a lot of things have not only changed but I’ve forgotten almost everything I used to know):