Hello there...
I am trying for a long time now, to find a way of creating a dynamic drop
down menu. I have the CSS part ready and working and also I have the first
level of the menu working.
the problem I have is how can I submit the id from the first level menu in
order to make the query and create the second level and so on menu.
I am trying to avoid Javascript but I can't see another way at the moment...
What I want to achieve is to produce the menu on HOVER if that is not
possible on click will be ok as well.
Do any of you have an idea ?
This is the code I have :
*************** *************** *************** *
<div id="menu">
<ul>
<li><h2>Product s</h2>
<ul>
<?php do { ?>
<li><a href="?cat_id=< ?php echo
($row_product_c ategories['prod_category_ id']); ?>"title="<?ph p echo
strtoupper($row _product_catego ries['prod_category_ name']); ?>"><?php echo
ucfirst($row_pr oduct_categorie s['prod_category_ name']); ?></a></li>
<?php }
while ($row_product_c ategories =
mysql_fetch_ass oc($rs_product_ categories)); ?>
<ul>
<?php do { ?>
<li><a href="index.php ?id=<?php echo ($row_products['prod_id']);
?>"title="<?ph p echo strtoupper($row _products['prod_name']); ?>"><?php echo
ucfirst($row_pr oducts['prod_name']); ?></a></li>
<?php }
while ($row_products = mysql_fetch_ass oc($rs_products )); ?>
</ul>
</li>
</ul>
</li>
</ul>
</div>
*************** *************** *************** *****
I am trying for a long time now, to find a way of creating a dynamic drop
down menu. I have the CSS part ready and working and also I have the first
level of the menu working.
the problem I have is how can I submit the id from the first level menu in
order to make the query and create the second level and so on menu.
I am trying to avoid Javascript but I can't see another way at the moment...
What I want to achieve is to produce the menu on HOVER if that is not
possible on click will be ok as well.
Do any of you have an idea ?
This is the code I have :
*************** *************** *************** *
<div id="menu">
<ul>
<li><h2>Product s</h2>
<ul>
<?php do { ?>
<li><a href="?cat_id=< ?php echo
($row_product_c ategories['prod_category_ id']); ?>"title="<?ph p echo
strtoupper($row _product_catego ries['prod_category_ name']); ?>"><?php echo
ucfirst($row_pr oduct_categorie s['prod_category_ name']); ?></a></li>
<?php }
while ($row_product_c ategories =
mysql_fetch_ass oc($rs_product_ categories)); ?>
<ul>
<?php do { ?>
<li><a href="index.php ?id=<?php echo ($row_products['prod_id']);
?>"title="<?ph p echo strtoupper($row _products['prod_name']); ?>"><?php echo
ucfirst($row_pr oducts['prod_name']); ?></a></li>
<?php }
while ($row_products = mysql_fetch_ass oc($rs_products )); ?>
</ul>
</li>
</ul>
</li>
</ul>
</div>
*************** *************** *************** *****
Comment