Let me start over.
You would wish to have menus which build from an sql database.
That way, if you have to change your menus, and you use them in more than one place, you can just change the values in the Db.
But, this method is notoriously more slow. And is unnecessary in cases where the menus may not ever change.
The course of action I recommend is to make your php page dynamically create the page from the sql db.
Then, save this generated page to the hard disk drive of the server. (fwrite($fp, implode('\n',file('http://yourpage.com/yourfolder/generatemenu.php');
Whenever you change a menu, rebuild the page.
In the actual page to show the user, do a Readfile('mycached menu.php');