php - contents of side menu items not showing on click (only the last child content is showing) -


everything working fine,but thing when click on each menu items, page shows contents of last child.it shows value last category-> $category='j_w'.

<ul id="menuv2" class="indicator-market">      <li><a  href="#<?php $category='cloth'; ?>"   class="action" data-target="tab">clothing & accessories</a></li>     <li><a href="#<?php $category='elec'; ?>" class="action" data-target="tab">electronics</a></li>     <li><a href=#<?php $category='j_w'; ?>"  class="action"data-target="tab" >jewelries & watches</a></li>  </ul>  <script>     $('.action').click(function () {        $('#menuv2 a:first').tab('show');      }) </script> 

the value pass through cat.php , retrieve pictures database.

<ul id="tiles">     <li><a href="cat.php?category=<?php echo $category ; ?>"><img src="cat.php?category=<?php echo $category; ?>" width="190" height="158"></a><h5>title1</h5><p>this caption</p></li> </ul> 


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -