<table width="233" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" align="left"><a href="index.php"><img src="images/logo.jpg" border="0" /></a></td>
  </tr>
  <tr>
    <td valign="top" align="left">
    <table width="233" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" align="left"><img src="images/category_head.jpg" /></td>
  </tr>
  <tr>
    <td class="cat_repeat" valign="top" align="center">
	<?php $sqlcat="select * from tbl_catogery where cat_status=1 Order By sortorder ASC";
	$results=mysql_query($sqlcat);
	
	 ?>
    <table width="212" border="0" cellspacing="0" cellpadding="0">
	<?php while($catrow=mysql_fetch_array($results))
	{?>
  <tr>
    <td valign="top" align="left" height="30"><a href="index.php?c_id=<?php echo($catrow['id']);?>" class="nav">&bull; <?php echo $catrow['cat_name'];?></a></td>
  </tr>
  <?php }?>
  
</table>
    </td>
  </tr>
</table>

    </td>
  </tr>
  <tr>
    <td valign="top" align="left"><img src="images/platform_head.jpg" /></td>
  </tr>
  <tr>
    <td class="platform_repeat" valign="top" align="center">
	<?php $sqlplt="select * from tbl_platform where platform_status=1 Order By sortorder ASC";
	$resultplt=mysql_query($sqlplt);
	
	 ?>
    <table width="212" border="0" cellspacing="0" cellpadding="0">
	<?php while($pltrow=mysql_fetch_array($resultplt))
	{?>
  <tr>
    <td valign="top" align="left" height="30" ><a class="nav2" href="index.php?p_id=<?php echo($pltrow['id']);?>">&bull; <?php echo $pltrow['platform_name'];?></a></td>
  </tr>
  <?php }?>
 <!-- <tr>
    <td valign="top" align="left" height="30"><a href="#" class="apple"></a></td>
  </tr>
  <tr>
    <td valign="top" align="left" height="30"><a href="#" class="blackb"></a></td>
  </tr>
  <tr>
    <td valign="top" align="left" height="30"><a href="#" class="symbion"></a></td>
  </tr>
  <tr>
    <td valign="top" align="left" height="30"><a href="#" class="webos"></a></td>
  </tr>
    <tr>
    <td valign="top" align="left" height="30"><a href="#" class="win"></a></td>
  </tr>-->
</table>

    </td>
  </tr>
  <tr>
    <td valign="top" align="left">
    <table width="233" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" align="left"><img src="images/add_head.jpg" /></td>
  </tr>
  <tr>
    <td class="add_repeat" valign="top" align="center">
    <table width="90%" border="0" cellspacing="0" cellpadding="0">
	
	
	<?php
	$tdtabs=0; 
  $addquery="select * from  tbl_advertise WHERE status='1' order by (sort_order) ASC";
$addsql=mysql_query($addquery);
$numm=mysql_num_rows($addsql);
?>
<tr>
<?php 
while($addrow=mysql_fetch_array($addsql)){
 $tdtabs++; ?>
	 
  
  
   
    <td width="51%" align="center" valign="middle" style="text-decoration:none;"><a href="<?php echo $addrow['img_url']; ?>" target="_blank" ><img src="uploads/advertise/<?php echo $addrow['img_name']; ?>" width="93" height="39" border="0" /></a></td>
    
 <?php 
  
  if(($tdtabs%2)==0){

echo "</tr>";
echo '<tr><td colspan="2" height="10"></td></tr>';
echo '<tr>';}
elseif($numm==$tdtabs)
{?>
<td width="51%" valign="middle" align="right"></td>
<?php }
 }?>
<!--  <tr>
    <td width="49%" align="left" valign="middle"><img src="images/add_1.jpg" /></td>
    <td width="51%" valign="middle" align="right"><img src="images/add_2.jpg" /></td>
  </tr>
  <tr>
    <td colspan="2" height="10"></td>
  </tr>
  <tr>
    <td valign="middle" align="left"><img src="images/add_3.jpg" /></td>
   <td valign="middle" align="left"><img src="images/add_4.jpg" /></td>
  </tr>
    <tr>
    <td colspan="2" height="10"></td>
  </tr>
  <tr>
    <td valign="middle" align="left"><img src="images/add_5.jpg" /></td>
   <td valign="middle" align="left"><img src="images/add_6.jpg" /></td>
  </tr>-->
</table>

    </td>
  </tr>
</table>

    </td>
  </tr>
</table>