table sizeing ?

jmad

New Member
i am placing information from my db in a table i am having problems controlling the size of the table is it because of the fact that i am inserting info using php n mysql or is it an html error? I know the code is a lil messy but if u see my error plz help?

mysql_select_db("ecomm", $con);

$i=$_POST['recordno'];

$S=$POST['session'];
echo $i;
// echo $Q;




$result = mysql_query("SELECT * FROM $show");

echo "<br/>";
echo '<h2 > Items </h2>';
echo '<table width="750" border="0" bgcolor="F0F8FF" cellpadding="0">
<tr>

<th width="5" >Item</th>
<th width="200">Description</th>
<th>Price</th>
<th>Qty</th>
</tr>';

while($row = mysql_fetch_array($result))
{
echo "<tr>";

echo '<td width"5">' . $row['itemid'] . "</td>";
echo '<td>' . $row['desc1'] . "&nbsp;" . $row['desc2'] . "</td>";
echo '<td align="right">' . $row['Price'] . "</td>";
$rod=$row['recordno'];
$j=$row['sessionid'];
$Q=$row['QTY'];
echo
'<td width="10" align="right">
<form name="qty" action="index.php"
method="POST">
<input type="hidden" name="session" value=' . $j . '>
<input type="hidden" name="recordno" value=' . $rod . '>
<input type="hidden" name="qty" value='. $Q . '>
<input type="submit" value="add to cart!">
</form>

</td>';



echo "</tr>";
}
echo "</table>";
 
Top