I have a problem that when displaying the table,the more entries I have, the further down the screen it goes.
its really annoying so, if anyone could help
here is the code.
echo '<center>';
echo '<table border=1 cellspacing =1 cellpadding=1>';
echo '<tr><td width=500><center><font face="Bookman Old Style" size="4">
Current Orders </tr></font>';
while ($myrow = mysql_fetch_row($result)) {
if ($myrow[14]=='0')
{
printf("<tr><td bgcolor=#000000><center><a href=vieworder.php?num=%s>%s %s - %s to %s - %s/%s/%s - %s:%s -%s</td></center></a>\n",
$myrow[0],$myrow[1],$myrow[2], $myrow[5],$myrow[8], $myrow[17],$myrow[18],$myrow[19],$myrow[15],$myrow[16],$myrow[14]);
printf("<td><a href=\"onduty.php?num=%s&delete=yes\" target=\"right\">Assign</a></td></tr><br>", $myrow[0]);
}
else
{
printf("<tr><td bgcolor=#ffffff><center><a href=vieworder.php?num=%s>%s %s - %s to %s - %s/%s/%s - %s:%s -%s</td></center></a>\n",
$myrow[0],$myrow[1],$myrow[2], $myrow[5],$myrow[8], $myrow[17],$myrow[18],$myrow[19],$myrow[15],$myrow[16],$myrow[14]);
printf("<td><a href=\"currentjobs.php?num=%s&delete=yes\" target=\"bottom\">Delete</a></td></tr><br>", $myrow[0]);
}
}
echo '</table>';
echo '</center>';
thanks Alex