I want to make a table on the searchresults of an sql string which pakkets the customer can deliver. ("SELECT * FROM customer, products WHERE customer_id=productcustomer_id AND customer_id=$customer_id"
'Normally' if you have multiple rows as output you put them horizontal:
while ($myrow = mysql_fetch_array($result)){

echo "<table border=1>";
echo "<tr>";
echo "<td>$pakket</td>";
echo "</tr></table>";
But now i want to make an output table where the selectes rows are printed out as colums.
pakket 1 | pakket 2 | pakket 3
option 1 j n j
option 2 n n j
option 3 6 j n
option 4 $25 $30 $10

Is this possible and how can i do this in php? I think i have to use another 'while' string but i can't figure it out.