I have a little problem.
I should get a "go back link" to my layout, but I can think of no idea how to do this.
WebsiteBaker menu is like this:
- Donald Duck
- Mickey Mouse
The question now is how I get on a link that will always link to a higher level.
if I'm Donald Duck page shows a link to comics page, if I'm Goofy page shows a link to comics page, if I'm videos page show link to Products page.
If I am the top-level link is not displayed.
This code does not work correctly.
echo '<a href="'.$_SERVER["HTTP_REFERER"].'"><strong>« Go Back</strong></a>';
I'm not very good at English. I hope you understand.