I have a problem while loop of the following program. The problem is that, it showing the output that i wished to show, but the other remaining HTML portion afer the while loop is not showing in my pages. I m giving the code below
[HTML]<body>
<div id="maincontainer">
<div id="topsection"><span style="font-size:30px; font-weight:bold; color:#6666FF">Welcome to Habsons Telephone Directory</span><span style="float:left">Hi
<?php
echo "<font size=\"4\" color=\"red\">";
echo ucwords($_SESSION['username']);
echo "</font>";
?>
 <a href="logout.php" style="text-decoration:none; font-weight:bold"> [ Logout ]</a>
</span>
<?php include("topMenu.php"); ?></div>
<div id="contentwrapper">
<div id="contentcolumn">
<div style="margin-top:20px; margin-bottom:20px; margin-left:7.5em; width:650px; ">
<fieldset style="width:650px;">
<legend>Detailed </legend>
<?php
include "config.inc.php";
include "connect.inc.php";
$error = "";
$vTelNumber = $_POST['vTelNumber'];
// echo $vTelNumber;
?>
<table width="100%" cellspacing="1" align="center">
<tr>
<td colspan="5" align="left">
Phone Number:
<?php echo $vTelNumber; ?>
</td>
</tr>
<tr>
<td class="td1">Sl No</td><td class="td1">BIll Received On</td><td class="td1" align="center" valign="bottom">Bill Amount</td><td class="td1">Bill Last Date</td><td class="td1">Detail</td></tr>
<?php
$sql = "SELECT * FROM billrectable WHERE vTelNumber = '$vTelNumber'";
$result = mysql_query($sql) or die(mysql_error());
if($result>0)
{
$i = 1;
while($row = mysql_fetch_array($result) or die(mysql_error()))
{
if($i%2==0)
{
$bg = "#C0C0C0";
}
else
{
$bg = "#969696";
}
?>
<?php
$iBillID = $row['iBillID'];
$iBillNumber = $row['iBillNumber'];
echo "<tr bgcolor=\"$bg\">";
echo "<td class=\"td1\">$i</td>";
echo "<td class=\"td1\">".$row['dBillRecDate']."</td>";
echo "<td class=\"td1\">".$row['fAmountToPay']."</td>";
echo "<td class=\"td1\">".$row['dBillDateOfPay']."</td>";
echo "<td class=\"td1\"><a href=\"detailed_bill_by_number.php?iBillID=$iBillI D&iBillNumber=$iBillNumber&foloer=39fmias90ufja9fj &sick=fjijkackj109iu903j\">Detail</a></td>";
$i++;
}
// exit;
}
?>
</table>
<table>
<tr><td>djfkdf</td></tr>
</table>
</fieldset>
</div>
</div>
</div>
<div id="leftcolumn">
<div class="innertube"><?php include("leftMenu.php"); ?> </div>
</div>
<div id="footer">All rights reserved © </div>
</div>
</body>
[/HTML]
when i run the program the <div id ="left"><?php include("leftMenu.php"); ?> </div> and footer div is also not shown. i dont know what is the problem. please help me to find the solution ............thanks .