Originally Posted by countrydj
After I posted my problem I changed to your suggested code and it didn't work.
That depends on what you mean by "didn't work".
IF you're still seeing <? echo $hmenu ?> in your html then you've not changed the correct part of your php code.
If you're referring to something else that "didn't work" then you need to tell us more about it
PHP short tags <? are not enabled on every server (for good reason - .xml files also use <? in them) so you must be prepared to use <?php in all of your php code instead.