PHP expert |
|
<?
$query = mysql_query("SELECT * FROM member");
?>
<table width=\"100%\">
<tr>
<td>ID</td>
<td>Naam</td>
<td>E-mail</td>
<td>Join Date</td>
<td>Status</td>
</tr>
<?php
while($row = mysql_fetch_assoc($query))
{
?>
<tr>
<td><?php echo $row['ID']; ?></td>
<td><?php echo $row['Naam']; ?></td>
<td><?php echo $row['E-Mail']; ?></td>
<td><?php echo $row['Join_Date']; ?></td>
<td><?php echo $row['Status']; ?></td>
</tr>
<?php
}
?>
</table>
<? ?> <table width=\"100%\"> <tr> <td>ID</td> <td>Naam</td> <td>E-mail</td> <td>Join Date</td> <td>Status</td> </tr> <?php { ?> <tr> <td> <?php echo $row['ID']; ?></td> <td> <?php echo $row['Naam']; ?></td> <td> <?php echo $row['E-Mail']; ?></td> <td> <?php echo $row['Join_Date']; ?></td> <td> <?php echo $row['Status']; ?></td> </tr> <?php } ?> </table>
standaard voorbeeld
mvg stijn |