I am trying to develop my own dynamic menu, to learn more about functions.
I have series of varabiles for each menu item ie
$var_1 = array(etc)
$var_2 = array(etc)
I havea function that uses the array to generate a submenu
SubMenu($var_1){code}
I create the main menu like this
for ($b=1:$b<$mnueitems;$b++)
{(table information)
if ($id == $b){Submenu($var_1);}}//this calls the submenu fuction with the right array
What I need to be able to do is change the $var_x to be the same as the $b value. I have tried Submenu($var_.$b) and other options but no joy any ideas?
Twcmad
there is always a light at the end of the tunnel only some time you have to go light the dam thing