HTML gevorderde |
|
snap je vraag niet?
bedoel je dit:
<?php
echo '<table>';
echo '<tr><td>Product</td><td>Omschrijving</td></tr>';
$query = "SELECT product, omschrijving FROM table ORDER BY product";
$result = mysql_query($query) or die ("Error in query: $query. " . mysql_error());
while($row = mysql_fetch_object($result))
{
echo '<tr><td>'. $row->product.'</td><td>'. $row->omschrijving .'</td></tr>';
}
echo '</table>';
?>
<?php echo '<tr><td>Product</td><td>Omschrijving</td></tr>'; $query = "SELECT product, omschrijving FROM table ORDER BY product"; { echo '<tr><td>'. $row->product.'</td><td>'. $row->omschrijving .'</td></tr>'; } ?>
|