php question

Associate
Joined
11 Oct 2008
Posts
268
hey guys, about 5 years ago when i last had a site, i had a navigation on the left and my content in the middle, and i could change my content and navigation by making my links like this:

/?nav=mainmenu&content=news

now the code i used to use doesnt work with the new versions of php, so i was wondering if anyone could tell me the updated way of doing this with php5

many thanks
 
ok that seems simple enough, i really know nothing about php though, the code i used to use would automatically include the file news.php in my content box, then i would make my link like /?=contact to load the contact page in the content box, if its not too hard card you tell me how i would go about doing that? sorry to sound cheeky but with my lack of knowledge im not finding google much use

i have found pages that tell you to include a header file, content and a footer, but the way i remember it i just had my layout saved as index.php, then the content pages all made without any laout at all and they were just loaded into the content section of my site, sorry if this all sounds really dumb lol
 
Back
Top Bottom