Location: PHPKode > scripts > PHP Classified script made easy > php-classified-script-made-easy/Files/inc/buy-header-inc.php
<style type="text/css">
<!--
.style52 {	color: #39709B;
	font-weight: bold;
	font-family: Geneva, Arial, Helvetica, sans-serif;
	font-size: 20px;
}
.category-item {
	color: #39709B;
	font-family: Geneva, Arial, Helvetica, sans-serif;
	font-weight:bold;
	font-size: 15px;
	text-decoration:none;
}
.cli {
padding-bottom:5px;
}
.categories {
color:#39709B;
text-align:left;
}
.categories1 {color:#39709B;
}
-->
</style>
<table width="100%" height="220" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="35" valign="middle"><div align="center"><span class="style52">Classified Categories</span></div></td>
    <td colspan="2" valign="middle" style="padding-top:5px;padding-right:5px;"><div align="right">
      <form action="search.php" method="get" title="search">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="89%"><div align="right">
              <input name="query" type="text" size="40" style="font-size:14px; margin-right:5px;" />
            </div></td>
            <td width="11%"><div align="center">
              <input type="image" src="images/search-small.gif" name="Search" value="Search" />
            </div></td>
          </tr>
        </table>
        </form>
    </div></td>
  </tr>
  <tr>
    <td width="33%" valign="middle"><?PHP
	include("inc/header.php");
	$catquery  = mysql_query("SELECT * FROM categories WHERE sub = '0' ORDER BY name ASC");
	$catrows = mysql_num_rows($catquery);
	$split = 2;
	$total = $catrows / $split;
	$catquery2  = mysql_query("SELECT * FROM categories WHERE id <= '".$total."' && sub = '0' ORDER BY name ASC");
echo "<div align='left'><ul class='categories1'>";
while($row = mysql_fetch_array($catquery2, MYSQL_ASSOC))
{

    echo "<li class='cli'><a href='category-".$row['id'].".php' class='category-item'>".$row['name']."</a></li>";
}
echo "</ul></div></td><td width='33%' valign='middle'>";


	$catquery3  = mysql_query("SELECT * FROM categories WHERE id > '".$total."' && sub = '0' ORDER BY name ASC");
echo "<div align='left'><ul class='categories1'>";
while($row = mysql_fetch_array($catquery3, MYSQL_ASSOC))
{

    echo "<li class='cli'><a href='category-".$row['id'].".php' class='category-item'>".$row['name']."</a></li>";
}
echo "</ul></div></td>";
 ?>
    </td>
    <td width="33%" valign="middle"><?PHP echo $block3; ?></td>
  </tr>
</table>
Return current item: PHP Classified script made easy