navigation.php
<div id="navigation">
<div id="logo"><img src="images/logo2.png" width="160" height="60"></div>
<?php
include('include/con_database.php');
$result2 = mysql_query("SELECT menu_name FROM menu_order WHERE menu_id='1'");
while ($data2 = mysql_fetch_array($result2)){
echo '<td>'.$data2['menu_name'].'</td>'.'<br>';
}
?>
<div id='cssmenu'>
<ul>
<li class='active'><a href='index.php'>|    Home    |</a></li>
<li class='has-sub'><a href='index.php'>    Product & Services    |</a>
<ul>
<li class='onelayer'><a href='connection.php'>    Connection       <img src="images/arrow.png"></a>
<ul>
<li class='onelayer'><a href='vsat.php'>    VSAT</a></li>
<li class='onelayer'><a href='terestrial.php'>    Terestrial</a></li>
</ul>
</li>
<li class='onelayer'><a href='collaboration.php'>    Collaboration    <img src="images/arrow.png"></a>
<ul>
<li class='onelayer'><a href='cloud.php'>    Cloud</a></li>
<li class='onelayer'><a href='ucom.php'>    Unified    Communication</a></li>
<li class='onelayer'><a href='cc.php'>    Contact Center</a></li>
<li class='onelayer'><a href='surveillance.php'>    Surveillance Center</a></li>
</ul>
</li>
<li class='onelayer'><a href='solution.php'>    Solution             <img src="images/arrow.png"></a>
<ul>
</ul>
</li>
</ul>
</li>
<?php /* <li><a href='agent.php'>    Agent    |</a></li> */ ?>
<li><a href='aboutus.php'>    About Us    |</a></li>
<li><a href='contactus.php'>    Contact Us    |</a></li>
</ul>
</div>
<div id="search">
<input type="text" name="search" placeholder="search.." value=""></div>
<div id="sbutton"><img src="images/search button.jpg"></div>
</div>
</div>
hello, I am trying to make this code shorter:
<?php
include('include/con_database.php');
$result2 = mysql_query("SELECT menu_name FROM menu_order WHERE menu_id='1'");
while ($data2 = mysql_fetch_array($result2)){
echo '<td>'.$data2['menu_name'].'</td>'.'<br>';
}
?>
so that I can place it in between the navigation. Is there any way to do so?