Jump to content

Php Navigation


dubfoundry

Recommended Posts

I am trying to create an accordion that holds unique categories as the tab name and then a list subcategories that relate to that category in the content.

What i think is happening is it is only showing one category like i need it to but then it echoes one category and repeats it in separate category content.  ??? i need all subcats listed under its cat.

check it here http://vaughntucker.com/exflowers/about.php?

 

The code is

 

<?php

      do {

if($row_get_subcats['subcat_id']==$current_subcat){

$link_look='class="selectedPage"';

 

}else{

$link_look='';

 

}

?>

<div class="AccordionPanel">

<div class="AccordionPanelTab"><a href="about.php?cat=<?php echo $row_get_cats['cat_id']; ?>"

>

<?php echo $row_get_cats['cat_name']; ?></a></div>

 

<div class="AccordionPanelContent"><a href="about.php?subcat=<?php echo $row_get_subcats['subcat_id']; ?>&cat=<?php echo $row_get_cats['cat_id']; ?>"

<?php echo $link_look;?>>

<?php

//if($row_get_cats['cat_id'] == $row_get_subcats['catsub_id']){}

 

echo $row_get_subcats['subcat_name'];?></a></div></div>

 

  <?php  }while ($row_get_cats = mysql_fetch_assoc($get_cats));  ?>

 

 

Thank you for any help.

view all the code here http://vaughntucker.com/exflowers/about.txt

Link to comment
Share on other sites

With good price and qualified products, Zhengzhou Vipeak Heavy Industry Machinery Co., Ltd has long been one of the best powder processing machinery companies in China, Welcome all the customers from worldwide to browse our website and choose our machinery.

Being a leading company in Industrial powder processing, Engineering Stone crushing and Construction Sand Making, Zhengzhou Vipeak Heavy Industry Machinery Co., Ltd is a high-tech mining machinery company in China. Our service has expanded to the entire world, almost including 75 countries.From Engineering Stone, Construction Sand to Engineering Powder, All Equipments from VIPEAK exert great productivity and stability on working sites, make the customers satisfied. We strongly feel that customers do not only need equipments with good performance, but in the hope of their efficiency, their benefit and their competitive power。so high value added equipments have been produced.We have never been satisfied; our customer’s satisfaction is our utmost objective.

http://www.grinderpro.com

 

Jaw Crusher

Application of Jaw Crusher One of the most popular stone-crushing equipments in the world, Jaw Crusher is ideally suitable for primary and secondary crushing. The highest anti-pressure strength of crushed material is 320MPa. It is widely used in mining, metallurgy, construction, highway, railroad, and chemistry industries and etc. Many models are available according to your different fineness requirements.

http://www.grinderpro.com/Jaw.html (Jaw Crusher)

 

Stone Crusher

Vipeak provides various kinds of stone crushers, such as jaw crusher, impact crusher, hammer crusher, cone crusher , etc

http://www.grinderpro.com/Crusher.html (Stone Crusher)

 

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.