Onbekend |
|
Alvorens bedankt!
Hier een voorbeeldje om te laten zien of ik het begrijp..
<table>
<?php
Mysql_connect('localhost','gebruikersnaam','wachtwoord');
Mysql_select_db('database');
$res = Mysql_query('Select id,naam,rank,status From crew')
or die(Mysql_error());
while($arr= Mysql_fetch_assoc($res))
{
?>
<tr>
<th>
Id
</th>
<th>
Naam
</th>
<th>
Email
</th>
<th>
Rank
</th>
<th>
Status
</th>
</tr>
<tr>
<td>
<?php echo $arr['id']; ?>
</td>
<td>
<a href='profiel.php?id=<?php $arr['id]; ?>' target='content' class='text'><?php $arr['naam']; ?></a>
</td>
<td>
<a href='mailto:<?php $arr['email']; ?>' target='_blank' class='text'><?php $arr['naam']; ?></a>
<td>
<?php echo $arr['rank']; ?>
</td>
<td>
<?php echo $arr['status']; ?>
</td>
</tr>
<?php
}
Mysql_free_result($res);
Mysql_close();
?>
</table>
<table> <?php $res = Mysql_query('Select id,naam,rank,status From crew') { ?> <tr> <th> Id </th> <th> Naam </th> <th> Email </th> <th> Rank </th> <th> Status </th> </tr> <tr> <td> <?php echo $arr['id']; ?> </td> <td> <a href='profiel.php?id=<?php $arr['id]; ?>' target='content' class='text'><?php $arr['naam']; ?></a> </td> <td> <a href='mailto:<?php $arr['email']; ?>' target='_blank' class='text'><?php $arr['naam']; ?></a> <td> <?php echo $arr['rank']; ?> </td> <td> <?php echo $arr['status']; ?> </td> </tr> <?php } ?> </table>
Graag commentaar indien nodig.
Alvast bedankt .
MvG,
RvB |