Crew algemeen |
|
Enkele quotes stoppen enkele quotes:p
<?php
include('config.php');
if(!isset($_SESSION['gebruiker'])) {
header("Location: login.php");
}
if(!$id){
$query = mysql_query("SELECT * FROM leden");
$result = mysql_num_rows($query);
if(!$result){
echo "We hebben nog geen leden...";
}
else{
?>
<table border="0" cellpadding="0" cellspacing="0" width="350">
<tr>
<td width="50">ID</td>
<td width="100">Gebruikersnaam</td>
<td width="100">Naam</td>
<td width="50">Leeftijd</td>
<td width="50">M/V</td>
</tr>
<?
while($object = mysql_fetch_assoc($query)){
?>
<tr>
<td width="50"><?=$object['id'];?></td>
<td width="100"><a href="?pagina=profiel&id=<?=$object['id'];?>"><?=$object['naam'];?></a></td>
<td width="100"><?=$object['naam'];?></td>
<td width="50"><?=$object['leeftijd'];?></td>
<td width="50"><?=$object['geslacht'];?></td>
</tr>
<?PHP
}
}
}
?>
</table>
<?php include('config.php'); if(!isset($_SESSION['gebruiker'])) { header("Location: login.php"); } if(!$id){ if(!$result){ echo "We hebben nog geen leden..."; } else{ ?> <table border="0" cellpadding="0" cellspacing="0" width="350"> <tr> <td width="50">ID</td> <td width="100">Gebruikersnaam</td> <td width="100">Naam</td> <td width="50">Leeftijd</td> <td width="50">M/V</td> </tr> <? ?> <tr> <td width="50"><?=$object['id'];?></td> <td width="100"><a href="?pagina=profiel&id=<?=$object['id'];?>"><?=$object['naam'];?></a></td> <td width="100"><?=$object['naam'];?></td> <td width="50"><?=$object['leeftijd'];?></td> <td width="50"><?=$object['geslacht'];?></td> </tr> <?PHP } } } ?> </table>
|