<?php include_once("dbconnect.php"); ?>
<table width="982" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="360" height="180" align="left" valign="middle"><a href="index.php"><img src="images/logo.png" width="355" height="144" alt="" /></a></td>
                    <td align="right" valign="bottom" class="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="50" align="right" valign="middle"><a href="index.php">Home</a> | <a href="egift.php">e-Gift Certificate</a> | <a href="accountcheck.php">my account</a> | <a href="contact.php">Contact Us</a> | <a href="help.php">help</a></td>
                      </tr>
                      <tr>
                        <td><table width="249" border="0" align="right" cellpadding="0" cellspacing="0">
                          <tr>
                            <td align="right" valign="top"><table width="255" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td height="63" align="center" valign="middle" style="background:url(images/shopping.png) no-repeat top left;"><span style="background:url(images/shopping_bg.png) no-repeat top center;"><a href="cart.php" class="shop">Shopping bag</a></span></td>
                                </tr>
                            </table></td>
                            </tr>
                        </table></td>
                      </tr>
                      <tr>
                        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td height="50" align="right" valign="middle"><span class="call">Contact Customer Care : +1 949.202.5621</span>| <a href="sitemap.php">Sitemap and design</a><a href="#">Tarck Order</a> <?php if($_SESSION['userid']==""){ ?><a href="register.php" style="padding:0;"> Create Account</a> /<a href="login.php"> Sign in</a><? } else { ?><a href="logout.php"> Sign out</a><? } ?><br /></td>
                          </tr>
                        </table></td>
                      </tr>
                    </table></td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td align="left" valign="top"><div id="smoothmenu1" class="ddsmoothmenu">
                  <ul>
                    <li><a href="#">String instruments</a>
                      <ul>
                      <?php 
					  $query=mysql_query("select * from tblsubcategories where categoryid=1");
					  while($res=mysql_fetch_array($query)){
					  ?>
                <li><a href="products.php?catid=<?php echo $res['categoryid']; ?>&subcatid=<?php echo $res['subcat_id']; ?>"><?php echo $res['subcat_name']; ?></a></li>
                        <? } ?>
                      
                      </ul>
                    </li>
                    <li><a href="#">Wood Wind Instruments</a>
                      <ul>
                          <?php 
					  $query=mysql_query("select * from tblsubcategories where categoryid=2");
					  while($res=mysql_fetch_array($query)){
					  ?>
                <li><a href="products.php?catid=<?php echo $res['categoryid']; ?>&subcatid=<?php echo $res['subcat_id']; ?>"><?php echo $res['subcat_name']; ?></a></li>
                        <? } ?>
                      
                      </ul>
                    </li>
                    <li><a href="#">Brass wind</a>
                      <ul>
                         <?php 
					  $query=mysql_query("select * from tblsubcategories where categoryid=3");
					  while($res=mysql_fetch_array($query)){
					  ?>
                <li><a href="products.php?catid=<?php echo $res['categoryid']; ?>&subcatid=<?php echo $res['subcat_id']; ?>"><?php echo $res['subcat_name']; ?></a></li>
                        <? } ?>
                      
                      </ul>
                    </li>
                    <li><a href="#">Orchestral Percussion</a>
                      <ul>
                         <?php 
					  $query=mysql_query("select * from tblsubcategories where categoryid=4");
					  while($res=mysql_fetch_array($query)){
					  ?>
                <li><a href="products.php?catid=<?php echo $res['categoryid']; ?>&subcatid=<?php echo $res['subcat_id']; ?>"><?php echo $res['subcat_name']; ?></a></li>
                        <? } ?>
                      
                      </ul>
                    </li>
                    <li><a href="#">Marching band</a>
                      <ul>
                        <?php 
					  $query=mysql_query("select * from tblsubcategories where categoryid=5");
					  while($res=mysql_fetch_array($query)){
					  ?>
                <li><a href="products.php?catid=<?php echo $res['categoryid']; ?>&subcatid=<?php echo $res['subcat_id']; ?>"><?php echo $res['subcat_name']; ?></a></li>
                        <? } ?>
                      </ul>
                    </li>
                    <li style="background:none;"><a href="#">Accessories</a>
                      <ul>
                        
                        <?php 
					  $query=mysql_query("select * from tblsubcategories where categoryid=6");
					  while($res=mysql_fetch_array($query)){
					  ?>
                <li><a href="products.php?catid=<?php echo $res['categoryid']; ?>&subcatid=<?php echo $res['subcat_id']; ?>"><?php echo $res['subcat_name']; ?></a></li>
                        <? } ?>
                      </ul>
                    </li>
                  </ul>
                  <br style="clear: left" />
                </div></td>
              </tr>
            </table>