hi experts i did some change in a header.php file and now i am having trouble site is marmiro.com in navigation bar portfolio->Commercial not working and in Products a 5th category is disappear. i forgot what changes i done.. i also have a very old backup file, these options are working fine there. but that was a old file so there is no new updates on that page. i am attaching both file's codes. please help me ASAP. Header.php <link rel="stylesheet" type="text/css" href="superfish.css" media="screen"> <meta name="SKYPE_TOOLBAR" content ="SKYPE_TOOLBAR_PARSER_COMPATIBLE"/> <!--<script type="text/javascript" src="jquery-1.2.6.min.js"></script>--> <!--<script type="text/javascript" src="hoverIntent.js"></script>--> <script type="text/javascript" src="js/jquery-1.3.2.js"></script> <script type="text/javascript" src="superfish.js"></script> <script type="text/javascript"> // initialise plugins jqcc=jQuery.noConflict(true); jQuery(function(){ jQuery('ul.sf-menu').superfish(); }); </script> <script language="JavaScript"> <!-- var message="Function Disabled"; //edit this message to say what you want function clickIE() {if (document.all) {//alert(message); return false;}} function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) { if (e.which==2||e.which==3) { //alert(message); return false;}}} if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} document.oncontextmenu=new Function("return false") // --> </script> <tr> <td class="menu_bg" valign="middle" align="left"><table width="936" border="0" cellspacing="0" cellpadding="0"> <tr> <!-- Column for menus starts here --> <td width="695" valign="middle" align="left" ><table width="695" border="0" cellspacing="0" cellpadding="0"> <tr> <div id="sample3" class="sampleTabContent"> <td valign="middle" align="center"> <ul id="sample-menu-1" class="sf-menu" > <li class="current"> <a style="text-transform:uppercase;" class="sf-with-ul" href="<?php echo $sitename?>" >Home</a> </li> </ul></td> <td valign="middle" align="center"><img src="images/divider.jpg" /></td> <?php $pages="select * from tbl_dynamic_pages where parent_id='0' AND location='Top' Order By sort_order ASC"; $res=mysql_query($pages) or die(mysql_error()); while($row=mysql_fetch_array($res)) { $pages_1="select * from tbl_dynamic_pages where parent_id='".$row['page_id']."' AND page_id!=440 AND page_id!=485 Order By sort_order ASC"; $res_1=mysql_query($pages_1) or die(mysql_error()); $num=mysql_num_rows($res_1); ?> <td valign="middle" align="center"> <?php /*?><a style="text-transform:uppercase" href="<?php echo $sitename.'home.php?page_name='.$row["page_name"]; ?>" class="top"><?php echo $row['page_name']?></a><?php */?> <ul id="sample-menu-1" class="sf-menu" > <li class="current"> <?php if($num==0) {?> <a style="text-transform:uppercase;" class="sf-with-ul" <?php if($row['page_id']!='426') {?>href=" <?php echo $sitename.'home.php?page_name='.$row["page_name1"]?>"<?php }?>><?php echo $row['page_name']?></a> <?php } else { ?> <a style="text-transform:uppercase;" class="sf-with-ul" ><?php echo $row['page_name']?></a> <?php } ?> <ul> <?php //Products sub menues if($row['page_id']=='426') { /////////////////////// $qry = "select * from category_subcategory where parent_id=0 order by sort_order ASC"; $res_cat = mysql_query($qry) or die("Query Failed"); ////////////ABOUT US pages $pages="select * from tbl_dynamic_pages where parent_id='426' AND location='left-column' AND page_name!='Clearance' order by sort_order ASC"; $ress=mysql_query($pages) or die(mysql_error()); while($rowzzz=mysql_fetch_array($ress)){ /////////////ABOUT US CHILDS QUERY $sub_pages="select * from tbl_dynamic_pages where parent_id='".$rowzzz['page_id']."' order by sort_order ASC"; $resz=mysql_query($sub_pages) or die(mysql_error()); $numzz=mysql_num_rows($resz); ?> <?php /*?><li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" href="<?php if($rowzzz["page_name"]=='New Products') { echo' new-products.php'; ?> <? }<?php */?> <li class="current"> <?php if($numzz==0) { if($rowzzz["page_name"]=='New Products') { ?><a style="text-transform:uppercase;" class="sf-with-ul" href=" <?php echo' new-products.php'; $sitename.'details.php?page_name='.$rowzzz['page_name1']?>" ><?php echo $rowzzz['page_name'] ?></a> <?php } if($rowzzz["page_name"]=='Clearance') {/* ?><a style="text-transform:uppercase;" class="sf-with-ul" href="<?php echo' clearance.php'; $sitename.'details.php?page_name='.$rowzzz['page_name1']?>" ><?php echo $rowzzz['page_name'] ?></a> <?php */} } else { ?><a style="text-transform:uppercase;" class="sf-with-ul" ><?php echo $rowzzz['page_name'] ?></a> <?php } ?> <ul> <?php ////////////////////////////////ABOUT US CHILDS while($row_sub=mysql_fetch_array($resz)){ /////////////// ABOUT US GRAND CHILDREN QUERY $sub_pages2="select * from tbl_dynamic_pages where parent_id='".$row_sub['page_id']."' order by sort_order ASC"; $resz2=mysql_query($sub_pages2) or die(mysql_error()); $num_grand=mysql_num_rows($resz2); ?> <li class="current"> <?php if($num_grand==0) { ?> <a style="text-transform:uppercase;" class="sf-with-ul" href="details.php?page_name=<?php echo $row_sub['page_name1'] ?>&pid=<?php echo $row_sub['parent_id']?>&pageid=<?php echo $row_sub['page_id']?>" ><?php echo $row_sub['page_name']?></a> <?php } else { ?> <a style="text-transform:uppercase;" class="sf-with-ul"><?php echo $row_sub['page_name']?></a> <?php } ?> <ul> <?php //////////////////////////////////////ABOUT US GRAND CHILDS $sub_pages2="select * from tbl_dynamic_pages where parent_id='".$row_sub['page_id']."' order by sort_order ASC"; $resz2=mysql_query($sub_pages2) or die(mysql_error()); while($row_sub2=mysql_fetch_array($resz2)){ ?> <li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" href="details.php?page_name=<?php echo $row_sub2['page_name1'] ?>" ><?php echo $row_sub2['page_name']?></a></li> <?php } ?> </ul> </li> <?php } ?> </ul> </li> <?php /*?> <li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" href="<?php echo $sitename.'details.php?page_name=About-Natural-stones'?>" >About Natural stones</a></li> <li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" href="<?php echo $sitename.'new-products.php'?>">New Products</a> </li><?php */?> <?php } while($row_cat = mysql_fetch_array($res_cat )) { $p="select * from category_subcategory where parent_id='".$row_cat['id']."' order by sort_order ASC"; $result=mysql_query($p); $num=mysql_num_rows($result); if($row_cat['id']=='13') { while($row_p=mysql_fetch_array($result)){ $qry_pro= "select * from tbl_sub_category where cat_id='".$row_p['id']."'"; $res_pro= mysql_query($qry_pro) or die("Query Failed"); $num2=mysql_num_rows($res_pro); while($row_pro= mysql_fetch_array($res_pro)) { ?> <li> <a style="text-transform:uppercase;" href="product_detailj.php?name=<?php echo $row_pro['subcat_name'] ?>&id=<?php echo $row_p['id'] ?>&catid=<?php echo $row_cat['id'] ?>&proid=<?php echo $row_pro['subcat_id'] ?>" class="sf-with-ul"><?php echo $row_pro['subcat_name']?></a> </li> <?php } } }else{?> <li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" ><?php echo $row_cat['category_name']?></a> <?php } ?> <ul> <?php $qry_pro2= "select * from tbl_sub_category where cat_id='".$row_cat['id']."' order by subcat_id DESC"; $res_pro2= mysql_query($qry_pro2) or die("Query Failed"); $num3=mysql_num_rows($res_pro2); if($num3!=0) { while($row_pro2 = mysql_fetch_array($res_pro2)) { ?> <li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" href="product_detail.php?name=<?php echo trim($row_pro2['subcat_name'])?>&proid=<?php echo $row_pro2['subcat_id'] ?>&catid=<?php echo $row_pro2['cat_id'] ?>" ><?php echo $row_pro2['subcat_name']?>cccc</a></li> <?php } } if($row_cat['id']=='10' || $row_cat['id']=='13' ){ while($row_p=mysql_fetch_array($result)){ $qry_pro= "select * from tbl_sub_category where cat_id='".$row_p['id']."'"; $res_pro= mysql_query($qry_pro) or die("Query Failed"); $num2=mysql_num_rows($res_pro); //////////////here loop ?> <?php while($row_pro= mysql_fetch_array($res_pro)) { if($row_cat['id']=='13'){ ?> <li> <a style="text-transform:uppercase;" href="product_detailj.php?name=<?php echo $row_pro['subcat_name'] ?>&id=<?php echo $row_p['id'] ?>&catid=<?php echo $row_cat['id'] ?>&proid=<?php echo $row_pro['subcat_id'] ?>" class="sf-with-ul"><?php echo $row_pro['subcat_name']?></a> </li> <?php }else{ ?> <li> <a style="text-transform:uppercase;" href="product_detail.php?name=<?php echo $row_pro['subcat_name'] ?>&id=<?php echo $row_p['id'] ?>&catid=<?php echo $row_cat['id'] ?>&proid=<?php echo $row_pro['subcat_id'] ?>" class="sf-with-ul"><?php echo $row_pro['subcat_name']?></a> </li> <?php } } ?> <?php }?> <?php }else{ while($row_p=mysql_fetch_array($result)){ $qry_pro= "select * from tbl_sub_category where cat_id='".$row_p['id']."' order by sorting ASC"; $res_pro= mysql_query($qry_pro) or die("Query Failed"); $num2=mysql_num_rows($res_pro); //////////////here loop if($row_p['id']==29){ $row_pro= mysql_fetch_array($res_pro) ?> <li><a style="text-transform:uppercase;" href="product_detailj.php?name=<?php echo $row_p['category_name'] ?>&id=<?php echo $row_p['id'] ?>&catid=<?php echo $row_cat['id'] ?>&proid=<?php echo $row_pro['subcat_id'] ?>" " class="sf-with-ul" ><?php echo $row_p['category_name']?></a></li> <?php }else{?> <li><a style="text-transform:uppercase;" <?php if($num2==0){ ?>href="product_detail.php?name=<?php echo $row_p['category_name'] ?>&id=<?php echo $row_p['id'] ?>&catid=<?php echo $row_cat['id'] ?>" class="sf-with-ul"<?php }?>><?php echo $row_p['category_name']?></a> <ul> <?php while($row_pro= mysql_fetch_array($res_pro)) { ?> <li> <a style="text-transform:uppercase;" href="product_detail.php?name=<?php echo $row_pro['subcat_name'] ?>&id=<?php echo $row_p['id'] ?>&catid=<?php echo $row_cat['id'] ?>&proid=<?php echo $row_pro['subcat_id'] ?>" class="sf-with-ul"><?php echo $row_pro['subcat_name']?></a> </li> <?php } ?> </ul> </li> <?php }}?> <?php }?> </ul> <?php } ////////PACKAGING $packaging="select * from tbl_dynamic_pages where page_id='477' order by sort_order ASC"; $resultz=mysql_query($packaging) or die(mysql_error()); $rowzz=mysql_fetch_array($resultz); ?> <li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" href="<?php echo $sitename.'home.php?page_name='.$rowzz['page_name1']?>" ><?php echo $rowzz['page_name'] ?></a> <ul> <?php /////////////PACKAGING CHILDS $packaging_child="select * from tbl_dynamic_pages where parent_id='477' order by sort_order ASC"; $resultz_child=mysql_query($packaging_child) or die(mysql_error()); while($rowzz_c=mysql_fetch_array($resultz_child)) { ?> <li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" href="<?php echo $sitename.'home.php?page_name='.$rowzz_c['page_name1']?>" ><?php echo $rowzz_c['page_name'] ?></a></li> <?php } ?> </ul> </li> <?php $pages="select * from tbl_dynamic_pages where parent_id='426' AND location='left-column' AND page_name='Clearance' order by sort_order ASC"; $ress=mysql_query($pages) or die(mysql_error()); while($rowzzz=mysql_fetch_array($ress)){ if($rowzzz["page_name"]=='Clearance') { ?><li><a style="text-transform:uppercase;" class="sf-with-ul" href="<?php echo' clearance.php'; $sitename.'details.php?page_name='.$rowzzz['page_name1']?>" ><?php echo $rowzzz['page_name'] ?></a></li> <?php } } ?> </li> <?php } // company, production, portfolio while($row_1=mysql_fetch_array($res_1)) { $pages_last="select * from tbl_dynamic_pages where parent_id='".$row_1['page_id']."' AND location='Top' Order By sort_order ASC"; $res_last=mysql_query($pages_last) or die(mysql_error()); $num_last=mysql_num_rows($res_last); if($num>0){ ?> <li > <?php if($num_last==0) { ?> <?php //Events if($row_1['page_id']=='424'){ ?> <a style="text-transform:uppercase;" class="sf-with-ul" href="<?php echo $sitename.'events.php'; ?>"><?php echo $row_1['page_name']; ?></a> <?php }else if($row_1['page_id']=='355'){ //About us ?> <a style="text-transform:uppercase;" class="sf-with-ul" href="<?php echo $sitename.'home.php?page_name='.$row_1["page_name1"]; ?>"><?php echo $row_1['page_name'];?></a> <?php }else if($row_1['page_id']=='425'){ ?> <a style="text-transform:uppercase;" class="sf-with-ul" ><?php echo $row_1['page_name'];?></a> <?php $sub1="select * from tbl_dynamic_pages where parent_id='".$row_1['page_id']."' order by sort_order ASC"; $ress1=mysql_query($sub1) or die(mysql_error()); $numz1=mysql_num_rows($ress1); if($numz1>0) {?> <ul> <?php while($rr=mysql_fetch_array($ress1)) { ?> <li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" href="<?php echo $sitename.'home.php?page_name='.$rr['page_name1']; ?>" ><?php echo $rr['page_name'];?></a></li> <?php } ?> </ul> <?php } }else{ if($row_1['page_id']=='436' or $row_1['page_id']=='422' ){ ?> <a style="text-transform:uppercase;" class="sf-with-ul"><?php echo $row_1['page_name'];?></a> <?php }else{ ?> <a style="text-transform:uppercase;" class="sf-with-ul" href="<?php echo $sitename.'home_full.php?page_name='.$row_1["page_name1"]; ?>"><?php echo $row_1['page_name'];?></a> <?php } } }else{ ?> <?php }?> <?php if($row_1['page_id']=='422') { $comercial="select * from sub_pages where parent_name='quarries'"; $cmres=mysql_query($comercial) or die(mysql_error()); ?> <ul> <?php while($cmrow=mysql_fetch_array($cmres)) { $ID=$cmrow['id']; ?> <li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" href="<?php echo $sitename.'home_comercial.php?pageid='.$ID.'&parent_name=quarries'?>" ><?php echo $cmrow['page_title'];?></a></li> <?php } ?> </ul> <?php } elseif($row_1['page_id']=='436') { $comercial="select * from sub_pages where parent_name='comercial'"; $cmres=mysql_query($comercial) or die(mysql_error()); ?> <ul> <?php while($cmrow=mysql_fetch_array($cmres)) { $ID=$cmrow['id']; ?> <li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" href="<?php echo $sitename.'home_comercial.php?pageid='.$ID.'&parent_name=Commercial'?>" ><?php echo $cmrow['page_title'];?></a></li> <?php } ?> </ul> <?php } else { if($num_last>0) { ?> <ul> <?php while($row_last=mysql_fetch_array($res_last)) { ?> <li><a style="text-transform:uppercase;" href="<?php echo $sitename.'home.php?page_name='.$row_last["page_name1"]; ?>"><?php echo $row_last['page_name']?></a> </li> <?php } ?> </ul> <?php } } } } ?> </ul> </li> </ul> </td> <td valign="middle" align="center"><img src="images/divider.jpg" /></td> <?php } ?> </div> </tr> </table></td> <!-- Column for menus ends here --> <!-- Column for search starts here --> <td width="200" valign="middle" align="right" style="padding-right:5px;"><!--<table width="160" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="search_border" height="20" valign="middle" align="left"><table width="160" border="0" cellspacing="0" cellpadding="0"> <tr> <form name="search" action="search_results.php" method="get"> <td width="138" valign="middle" align="left"><input type="text" class="search_field" value="Search..." name="search" onclick="this.value=''"/> </td> <td width="22" valign="middle" align="center"><input type="image" name="image" src="images/search_ico.jpg" /> <a href="#"><img src="images/search_ico.jpg" border="0" /></a></td> </form> </tr> </table></td> </tr> </table> --></td> </tr> <!-- Column for search ends here --> </table></td> </tr> <!—- Code Start -- > <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-12446870-18"); pageTracker._trackPageview(); } catch(err) {}</script> <!—- Code End -- > PHP:
Old header.php file <link rel="stylesheet" type="text/css" href="superfish.css" media="screen"> <!--<script type="text/javascript" src="jquery-1.2.6.min.js"></script>--> <!--<script type="text/javascript" src="js/jquery-1.3.2.js"></script>--> <script type="text/javascript" src="hoverIntent.js"></script> <script type="text/javascript" src="superfish.js"></script> <script type="text/javascript"> // initialise plugins jQuery(function(){ jQuery('ul.sf-menu').superfish(); }); </script> <tr> <td class="menu_bg" valign="middle" align="left"><table width="936" border="0" cellspacing="0" cellpadding="0"> <tr> <!-- Column for menus starts here --> <td width="695" valign="middle" align="left" ><table width="695" border="0" cellspacing="0" cellpadding="0"> <tr> <div id="sample3" class="sampleTabContent"> <td valign="middle" align="center"><ul id="sample-menu-1" class="sf-menu" > <li class="current"> <a style="text-transform:uppercase;" class="sf-with-ul" href="<?php echo $sitename?>" >Home</a> </li> </ul></td> <td valign="middle" align="center"><img src="images/divider.jpg" /></td> <?php $pages="select * from tbl_dynamic_pages where parent_id='0' AND location='Top' Order By sort_order ASC"; $res=mysql_query($pages) or die(mysql_error()); while($row=mysql_fetch_array($res)) { $pages_1="select * from tbl_dynamic_pages where parent_id='".$row['page_id']."' Order By sort_order ASC"; $res_1=mysql_query($pages_1) or die(mysql_error()); $num=mysql_num_rows($res_1); ?> <td valign="middle" align="center"><?php /*?><a style="text-transform:uppercase" href="<?php echo $sitename.'home.php?page_name='.$row["page_name"]; ?>" class="top"><?php echo $row['page_name']?></a><?php */?> <ul id="sample-menu-1" class="sf-menu" > <li class="current"> <?php if($num==0) {?> <a style="text-transform:uppercase;" class="sf-with-ul" <?php if($row['page_id']!='426') {?>href=" <?php echo $sitename.'home.php?page_name='.$row["page_name1"]?>"<?php }?>><?php echo $row['page_name']?></a> <?php } else { ?> <a style="text-transform:uppercase;" class="sf-with-ul" ><?php echo $row['page_name']?></a> <?php } ?> <ul> <?php if($row['page_id']=='426') { /////////////////////// $qry = "select * from category_subcategory where parent_id=0 "; $res_cat = mysql_query($qry) or die("Query Failed"); ?> <li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" href="<?php echo $sitename.'details.php?page_name=About-Natural-stones'?>" >About Natural stones</a></li> <li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" href="<?php echo $sitename.'new-products.php'?>">New Products</a> </li> <li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" href="<?php echo $sitename.'home.php?page_name=Technical-specifications'?>">Technical Specifications</a> </li> <?php while($row_cat = mysql_fetch_array($res_cat )) { $p="select * from category_subcategory where parent_id='".$row_cat['id']."'"; $result=mysql_query($p); $num=mysql_num_rows($result); ?> <li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" ><?php echo $row_cat['category_name']?></a> <ul> <?php $qry_pro2= "select * from tbl_sub_category where cat_id='".$row_cat['id']."'"; $res_pro2= mysql_query($qry_pro2) or die("Query Failed"); $num3=mysql_num_rows($res_pro2); if($num3!=0) { while($row_pro2 = mysql_fetch_array($res_pro2)) { ?> <li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" href="product_detail.php?name=<?php echo $row_pro2['subcat_name'] ?>&id=<?php echo $row_pro2['subcat_id'] ?>&catid=<?php echo $row_pro2['cat_id'] ?>" ><?php echo $row_pro2['subcat_name']?></a></li> <?php } } while($row_p=mysql_fetch_array($result)){ $qry_pro= "select * from tbl_sub_category where cat_id='".$row_p['id']."'"; $res_pro= mysql_query($qry_pro) or die("Query Failed"); $num2=mysql_num_rows($res_pro); //////////////here loop ?> <li> <a style="text-transform:uppercase;" <?php if($num2==0){ ?>href="product_detail.php?name=<?php echo $row_p['category_name'] ?>&id=<?php echo $row_p['id'] ?>&catid=<?php echo $row_cat['id'] ?>" class="sf-with-ul"<?php }?>><?php echo $row_p['category_name']?></a> <ul> <?php while($row_pro= mysql_fetch_array($res_pro)) { ?> <li> <a style="text-transform:uppercase;" href="product_detail.php?name=<?php echo $row_pro['subcat_name'] ?>&id=<?php echo $row_p['id'] ?>&catid=<?php echo $row_cat['id'] ?>&proid=<?php echo $row_pro['subcat_id'] ?>" class="sf-with-ul"><?php echo $row_pro['subcat_name']?></a> </li> <?php } ?> </ul> </li> <?php } ?> </ul> </li> <?php } } while($row_1=mysql_fetch_array($res_1)) { $pages_last="select * from tbl_dynamic_pages where parent_id='".$row_1['page_id']."' AND location='Top' Order By sort_order ASC"; $res_last=mysql_query($pages_last) or die(mysql_error()); $num_last=mysql_num_rows($res_last); if($num>0){ ?> <li ><a style="text-transform:uppercase;" class="sf-with-ul" <?php if($num_last==0) {?>href="<?php if($row_1['page_id']=='424'){ echo $sitename.'events.php'; } else { echo $sitename.'home.php?page_name='.$row_1["page_name1"];} ?>"<?php }else { }?>><?php echo $row_1['page_name']?></a> <?php if($row_1['page_id']=='422') { ?> <ul> <li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" href="product_detail.php?name=Afyon White&id=43&catid=16" >Afyon Marble</a></li> <li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" href="product_detail.php?name=Crema Eda202&id=24&catid=16" >Crema Eda–Marble</a></li> <li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" href="product_detail.php?name=Gold&id=51&catid=17" >Gold-Travertine</a></li> <li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" href="product_detail.php?name=Noche&id=52&catid=17" >Noche Travertine</a></li> <li class="current"><a style="text-transform:uppercase;" class="sf-with-ul" href="product_detail.php?name=Rosso laguna&id=50&catid=16" >Rossa Laguna – Marble</a></li> </ul> </li> <?php } else { if($num_last>0) { ?> <ul> <?php while($row_last=mysql_fetch_array($res_last)) { ?> <li><a style="text-transform:uppercase;" href="<?php echo $sitename.'home.php?page_name='.$row_last["page_name1"]; ?>"><?php echo $row_last['page_name']?></a> </li> <?php } ?> </ul> <?php } } } } ?> </ul> </li> </ul> </td> <td valign="middle" align="center"><img src="images/divider.jpg" /></td> <?php } ?> </div> </tr> </table></td> <!-- Column for menus ends here --> <!-- Column for search starts here --> <td width="200" valign="middle" align="right" style="padding-right:5px;"><table width="160" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="search_border" height="20" valign="middle" align="left"><table width="160" border="0" cellspacing="0" cellpadding="0"> <tr> <form name="search" action="search_results.php" method="get"> <td width="138" valign="middle" align="left"><input type="text" class="search_field" value="Search..." name="search" onclick="this.value=''"/> </td> <td width="22" valign="middle" align="center"><input type="image" name="image" src="images/search_ico.jpg" /> <!--<a href="#"><img src="images/search_ico.jpg" border="0" /></a>--></td> </form> </tr> </table></td> </tr> </table></td> </tr> <!-- Column for search ends here --> </table></td> </tr> PHP: