Jump to content

[SOLVED] Space Between Tables Generated From Array


dlebowski

Recommended Posts

I cannot figure out why I am getting these huge gaps in between each row that is returned after I run my sql query.  Can someone help me out?  Thanks.

 

<table>

<form action="<? echo "{$_SERVER['PHP_SELF']}?page=$page&SelectDate=$Date&sortby=$sortby" ?>" method="post"><tr>

<? echo "<input type='hidden' name='ud_ID' value='$ID'>";?>

<? echo "<input type='hidden' name='ud_Payment' value='$Payment'>";?>

<TD width="53" height="35"><? echo "<input type='text' size='5' name='ud_LNumber' style='background-color:$color; text-align:center; border-style: solid; border:1px solid black' value='$Number'>";?></td>

<TD width="250" height="35"><? echo "<input type='text' size='40' name='ud_LTitle' style='background-color:$color; border:1px solid black' value='$Title'>";?></td>

<TD width="78" height="35"><? echo "<input type='text' size='7' name='ud_Price' style='background-color:$color; border:1px solid black; text-align:center' value='$Price'>";?></td>

<TD width="60" height="35" align="center"><? echo "<input type='text' size='6' name='ud_Buyer' style='background-color:$color; border:1px solid black; text-align:center' value='$Buyer'>";?></td>

<TD width="80" height="35" align="center">

<? echo "<select style='background-color:$color; border:1px solid black;' name='ud_OnlineOnsite'>"; ?>

<option value="ONLINE" <? if ($OnlineOnsite == "ONLINE") echo "selected"; ?> >ONLINE</option>

<option value="ONSITE" <? if ($OnlineOnsite == "ONSITE") echo "selected"; ?> >ONSITE</option>

</select>

</td>

<TD width="74" height="35" align="center"><? echo "<input type='text' size='9' name='ud_Absentee' style='background-color:$color; border:1px solid black; text-align:center' value='$Absentee'>";?></td>

<TD width="65" height="35" align="center"><? echo "<input type='text' size='7' name='ud_Seller' style='background-color:$color; border:1px solid black; text-align:center' value='$Seller'>";?></td>

<TD width="72" height="35" align="center"><? echo "<input type='text' size='8' name='SelectDate' style='background-color:$color; border:1px solid black; text-align:center' value='$Date'>";?></td>

<td><input value ="UPD" type="Submit" border="0" name="submit1"></td>

<td><input value ="DEL" name="submit2" type="Submit"></td></tr></form></table>

<td>

<?

$i++;

}

?></td>


Link to comment
Share on other sites

Put the form opening and closing tags OUTSIDE the table.  Throw away all td height tags (there's no such thing - table cells height is determined by content and/or adjacent cell size). If you want to reduce the space between adjacent forms, use CSS to reduce the form element padding/margin.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.