echo "<table class='menu1'><tr>";
$butlevel = $substr($but,0,1); //check the syntax!!!
$butbit = $substr($but,1,1);
$tablebit = ($butlevel == 1 && $butbit == 1 ? "th" : "td")
echo "<$tablebit><a href=''>About Us</a></$tablebit>";
$tablebit = ($butlevel == 1 && $butbit == 2 ? "th" : "td")
echo "<$tablebit><a href=''>Our Toys</a></$tablebit>";
Ok, I understand that $butlevel is level1, but what is $substr for?
I know that it returns a part of a string, but where is $but declared and how is it declared?
$butbit is Level2 right?
I still don't get how do I relate one level2 menu to a level1 menu.
I mean, All Toys is under the Products Level1 Menu, how to code so that 'All Toys' is related to it and not to another Level1 Menu like About us?
Thanks, sorry for the newbie questions...