The DirectPHP plugin allows you to enter php commands directly into your articles. This feature is not part of the native Joomla code. Following the easy instructions below you will be up and running in no time.
First install the script below the root directory of Joomla
i.e. If joomla is installed on the root of your server in the folder /Joomla
The menu script should be in /Joomla/menu
After the normal installation is finished...
Download directPHP (if your not already using it)
Grab the latests version at http://www.kksou.com/php-gtk2/Joomla/DirectPHP-plugin.php#download
In Joomla go to Extensions > Install/Uninstall
Browse to the archived directPHP file and click Install
Go to Extensions > Plugin Manager
Search for DirectPHP
Under the Enabled Column, click on the Red X to enable
Paste the following on the TOP of the Joomla article
<?php include("yourmenuscriptlocation/config/dbconfig.php"); ?>
<?php include("yourmenuscriptlocation/includes/functions.php"); ?>
<link href="yourmenuscriptlocation/css/pm_style.css" rel="stylesheet" type="text/css" media="all">
Paste the following in the section of the Joomla article in which you want the menu to appear
<?php printMenu(); ?>
Click save and you're all done!
Again a special thank you to Sebu of aquatroninc.com for helping make this possible