HI all...

looking at the code below. It works and I get what I want on the screen. BUT 
it leaves a gap between the top lines and where the table starts equal to the 
size of the table, ie if the table is 5 lines long the gap is 5 lines etc. 

Any ideas what I'm doing wrong?

Thanks,

JIM

##############################

<form action="page2.php" method="post">

<?php
  $db = mysql_connect("localhost", "XXXX", "XXXXXX");
  mysql_select_db("WartHog",$db);
$result = mysql_query("select * from inventory order by name", $db);

echo ("<table border=1>");
$i=0;
while ($myrow = mysql_fetch_array($result)) {
$c= (++$i%2? 'yellow':'white');

        if($Odate == substr($myrow["name"],0,6)) {
                echo("<TR bgcolor=\"$c\"><TD><input type=\"hidden\" name=\"id[]\"   
value=\"$id\"></TD>");
                echo("<TD><input type=\"hidden\" name=\"idx[]\"  
value=\"$myrow[0]\"></TD>");
                echo("<TD><input type=\"text\" SIZE=4 MAXLENGTH=4  
name=\"quantities[]\"></TD>");
                printf(" <td>%s</td><td>%s</td><BR></tr>", $myrow["name"], 
$myrow["details"]);
                }
        };
echo "</table>";
?>
<input type="submit" name="submit" value="Save Order">
</form>
##################################################

-- 
                                    Vielfeind -- Viel Ehr'
Antiamerikanische Propaganda in der Philatelie des 20. Jahrhunderts
          http:/www.fecundswamp.net/~hatridge/stamps/index.html

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to