Hi all -> PHP newbie checking in.
And I have been messing that much with PHP to be honest, so please be very "gentle" when replying and explain me the solution as I'm a six year old kid - when it comes to PHP am I no older than 5 anyway.
My problem:
When calling/including the navigation table into subdirectories is the actual linking "transformed" one level down.
Overview:
Navigation is located in a central table, links is text based.
Navigation.php is located in root.
It works fine on all PHP.pages in same directory.
BUT
When I include the table into pages located in a subdirectory, is the linking messed up, as the links are changed from example main.php into subdirectory/main.php
What is the best way to tell PHP that the linking source isn't changed - like the home link will lead to main.php - regardless of being used in a subdirectory.
Thanks