I have a menu on my site which is built from php using categories in the database.
What i’m trying to do is when a menu item is clicked it displays the sub category choices benath it.
[CODE]
<div class=”mainMenu”>
<table width=”80%” border=”0″>
<tr>
<th>Menu</th>
</tr>
<?php do { ?>
<table width=”80%” border=”0″>
<tr>
<td><a href=”products.php?category=<?php echo $row_rsMenu[‘category’]; ?>”><?php echo $row_rsMenu[‘category’]; ?></a></td>
</tr>
</table>
<?php } while ($row_rsMenu = mysql_fetch_assoc($rsMenu)); ?>
</table>
</div>
thats the code for the menu as it is now. i tried putting another do in there so while its same category it displays sub category but it didn’t work.
so for instance it would look like:
CLOTHING
tees
jeans
socks
ACCESSORIES
belts
bags
hats
i’ve created a new recordset called rsSubMenu which brings in the sub categories. Any help or pointers to tutorial that may help?
Cheers
Sean