In the php table, retrieve all rows from the mysql database in the single td table?

advertisements

in php array fetch all rowsfrom mysql database and all values are showing into the single table td? i Want results like this?

1) Small
2) Large
3) Medium

now problem is that all values displaying into single table td i want to display all of these values into separately table td

Query Function

function get_size($id){
$result=mysql_query("SELECT size FROM mywishlist order by id")
or die("My Wish Size Problem"."<br/><br/>".mysql_error());
$results = array();
while($row=mysql_fetch_array($result)){
$results[] = stripslashes($row['size'])."<br />";
}
return $results;
}

<td><font style="font-family:Arial,Helvetica,sans-serif;
font-size:15px; color:#000;">
<?php
foreach($size as $sizes) {
echo $sizes; }
?></font><input type="hidden" name="size" value="<?php echo $size;?>" /></td>


<?php foreach ($size as $sizes) { ?>
    <td><font style="font-family:Arial,Helvetica,sans-serif;font-size:15px; color:#000;">
        <?php echo $sizes; ?>
        </font><input type="hidden" name="size" value="<?php echo $size; ?>" /></td>
<?php } ?>