Jump to content

Tables help needed


Baabu

Recommended Posts



<table width="100%" align="center">

<tr bgcolor="#FFd600">
<td width="10%">Trade Mark</td>
<td width="10%">Type</td>
<td width="10%">Model</td>
<td width="10%">Unit Price</td>
<td width="10%">Quantity</td>
<td width="10%">Sale Price</td>
<td width="10%">Profit</td>
<td width="10%">Orignal Cost</td>
<td width="10%">Sold Items</td>
</tr>

<?php
while(($row=mysql_fetch_array($result)))
{	
?>
<tr bgcolor="#CCCCCC">
<td width="10%"><?php echo $row["type"];?></td>
<td width="10%"><?php echo $row["model"];?></td>
<td width="10%"><?php echo $row["unitprice"];?></td>
<?php	
//echo $row["code"];
//this displays the all the values present in the Database for the particular category
?>
<td width="10%">0</td>	
<td width="10%">
<form action="admin_update.php" method="get">	
<input type="text" name="qty" size="2" value="<?php echo $row["qty"]?>">

<input type="hidden" name="model" value="<?php echo $row["model"];?>">
<input type="hidden" name="type" value="<?php echo $row["type"];?>">
<input type="hidden" name="code" value="<?php echo $row["code"];?>">
<input type="hidden" name="link" value="add_charger.php">
<input type="submit" value="update">
</form>

<td width="10%"><a href="admin_rem.php?action=remove_item&type=<?php echo $row['type'];?>&model=<?php echo $row['model'];?>&code=<?php echo $row["code"];?>">Remove</a></td>

<td width="10%">0</td>
<td width="10%">0</td>
<td width="10%">0</td>
</td>
<!-- Html Tag to Add the Element to The Invoice-->
</tr>
<?
}
?>
</table>

well every thing is working fine i want this table size to look nice n precise on the screen any suggestions??

30ua7wj.jpg

as u can see the tables have quite large height i want to fix that

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.