KaWouter
Terugkerende gebruiker
- Lid geworden
- 9 mei 2002
- Berichten
- 1.032
Ik krijg nu steeds maar 1 regel te zien terwijl er veel meer in staan
wat doe ik fout?
wat doe ik fout?
PHP:
<? include("../config/config.php"); ?>
<?
$add = $ondeel=$_GET['ondeel'];
$query = "SELECT * FROM $tabelnaam WHERE `ondeel` = '" . $ondeel . "'";
$result = mysql_query($query) or die("Error in query:".mysql_error());
?>
<html>
<head>
<title>Bekijk onderdeel <? echo $add ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="102%" border="0">
<tr>
<td>Naam</td>
<td>Adres</td>
<td>Postcode</td>
<td>Telefoon nummer</td>
<td>06-nummer</td>
<td>Geboortedatum</td>
<td>Email adres</td>
<td>Onderdeel</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<?
($row = mysql_fetch_assoc($result))
?>
<?
echo "<tr>";
echo "<td>";
echo "<a href='edit_lid.php?id=";
echo $row['id'];
echo "&ondeel=";
echo $add;
echo "'>";
echo $row ["naam"] . " " . $row["tussenvoeg"] . " " . $row["achternaam"] ."";
echo "</a> </td>";
echo "<td>" . $row["adres_1"] . " " . $row2["hnr_1"] . "</td>";
echo "<td>" . $row["pcode_1"] . "</td>";
echo "<td>" . $row["tnr_1"] . "</td>";
echo "<td>" . $row["mobnr_1"] . "</td>";
echo "<td>" . $row["gebdat"] . "</td>";
echo "<td>";
echo "<a href='mailto:";
echo $row["email_1"];
echo "'>";
echo $row["email_1"];
echo "</a>";
echo "</td>";
echo "<td>";
echo $row["ondeel"];
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>";
echo "</td>";
echo "<td>" . $row["adres_2"] . " " . $row["hnr_2"] . "</td>";
echo "<td>" . $row["pcode_2"] . "</td>";
echo "<td>" . $row["tnr_2"] . "</td>";
echo "<td>" . $row["mobnr_2"] . "</td>";
echo "<td>" . $row["email_2"] . "</td>";
echo "<td>";
echo "</td>";
echo "<td>";
echo "</td>";
echo "</tr>";
?>
</table>
<? include("footer.php"); ?>
</body>
</html>