Hi, Tuesday, November 12, 2002, 2:27:10 AM, you wrote:
JH> HI all... JH> looking at the code below. It works and I get what I want on the screen. BUT JH> it leaves a gap between the top lines and where the table starts equal to the JH> size of the table, ie if the table is 5 lines long the gap is 5 lines etc. JH> Any ideas what I'm doing wrong? JH> Thanks, JH> JIM JH> ############################## JH> <form action="page2.php" method="post"> JH> <?php JH> $db = mysql_connect("localhost", "XXXX", "XXXXXX"); JH> mysql_select_db("WartHog",$db); JH> $result = mysql_query("select * from inventory order by name", $db); JH> echo ("<table border=1>"); JH> $i=0; JH> while ($myrow = mysql_fetch_array($result)) { JH> $c= (++$i%2? 'yellow':'white'); JH> if($Odate == substr($myrow["name"],0,6)) { JH> echo("<TR bgcolor=\"$c\"><TD><input type=\"hidden\" name=\"id[]\" value=\"$id\">></TD>"); JH> echo("<TD><input type=\"hidden\" name=\"idx[]\" value=\"$myrow[0]\">></TD>"); JH> echo("<TD><input type=\"text\" SIZE=4 MAXLENGTH=4 JH> name=\"quantities[]\"></TD>"); JH> printf(" <td>%s</td><td>%s</td><BR></tr>", $myrow["name"], JH> $myrow["details"]); JH> } JH> }; JH> echo "</table>"; ?>> JH> <input type="submit" name="submit" value="Save Order"> JH> </form> JH> ################################################## get rid of the <br> tag here </td><BR></tr> -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php