In this article we will see how PHP can be used to generate a navigation menu which doesn't link to the current page, is up to date on every page and only shows section relevant links in the sub menu.This is one of the core features of a Content Management System (CMS) so anyone interested in developing their own CMS might be interested in this article.