I am running some code to output data onto a web page but between the header logo and the output I get a large blank space so that the start of the output is a long way below the header logo
Any ideas what is causing this ? I need to get rid of the 'space'
my code is;
require_once ('../mysql_connect.php');//connect to the database
include ('../header.htm'); //show corporate header logo
$Section = $_POST['section'];
$query = "SELECT `SectionId` FROM `tblSection` WHERE `SectionName` = '$Section'";
$result2 = mysql_query($query)
or die (mysql_error());
$row2 = mysql_fetch_array($result2);
$SectionRef = $row2["SectionId"];
//list equipment
$query = "SELECT (TypeRef) AS TypeRef, (SerialNo) AS SerialNo, (CommonName) AS Location, (MachineId) AS MachineId,
(ClicksList) AS ClicksList FROM `tblMachine` WHERE SectionRef = '$SectionRef' ";
$result11 = mysql_query($query)
or die(mysql_error());
if ($result11)
{
echo' <form action="process.php" method="POST">
<table align="centre" cellspacing="0" cellpadding="0">
<tr valign="top">
<td align="left"></td>
<td align="left"><b>Type Ref</b></td>
<td align="left"><b>Serial Number</b></td>
<td align="left"><b>Location</b></td>
<td align="right"><b>Code</b></td>
<td align="left"></td>
<td align="left"><b>Info</b></td>
<td align="left"></td>
<td align="left"></td>
</tr valign="top">';
while ($row11 = mysql_fetch_array($result11,MYSQL_NUM))
{
echo "<tr valign=\"top\"><font face=\"Arial, Helvetica, sans-serif\">
<td width=\"10\" align=\"left\"> <input type=\"hidden\" name=\"ClicksList\" value\"{$row11[4]}\"> </td>
<td width=\"70\" align=\"left\"> {$row11[0]}</td>
<td width=\"120\" align=\"left\"> {$row11[1]}</td>
<td width=\"200\" align=\"left\"> {$row11[2]}</td>
<td width=\"30\" align=\"right\"> {$row11[3]} </td> ";
if ($row11[4] == 1)
{
echo "<td width=\"10\" align=\"left\"> {$row11[7]} <input type=\"text\" name=\"MachineId[]\" size=\"3\"></td>
<td width=\"200\" align=\"left\"> {$row11[5]} BW <input type=\"text\" name=\"BWClicks[]\"></td>
<td width=\"300\" align=\"left\"><input type=\"hidden\" name=\"CClicks[]\" value\"{NULL}\"></td><br> ";
}
else
{
echo "<td width=\"1\" align=\"left\"> {$row11[7]} <input type=\"text\" name=\"MachineId[]\" size=\"3\"></td>
<td width=\"200\" align=\"left\"> {$row11[5]} BW <input type=\"text\" name=\"BWClicks[]\"> </td>
<td width=\"300\" align=\"left\"> {$row11[6]} Colour <input type=\"text\" name=\"CClicks[]\"></td><br> ";
}
echo "</font></tr valign=\"top\">\n";
} //close while loop
} //close if
echo '</table>';
echo "<br><p align=\"center\"><input type=\"submit\" name=\"submit\" value=\"Submit\"> ";
echo '</form>';