beginner: HELP
| From: | cablenews.casema.net | Date: | Fri, 02 May 2003 11:23:58 +0000 |
| Subject: | beginner: HELP | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-19780@lists.php.net to get a copy of this message | ||
Maybe a beginner question, but why doesn't this code work???
tnx, tristan
<html>
<head><title>persoon administratie</title>
<body>
<?php
mysql_connect ('localhost','','');
mysql_select_db("tristan");
$query = "SELECT voornaam, achternaam, adres, adres_nr, postcode,
woonplaats, telefoonnr, geslacht, notitie, id FROM persoon;";
$result = mysql_query($query);
while ($rij = mysql_fetch_array($result)) {
$voornaam = $rij["voornaam"];
$achternaam = $rij["achternaam"];
$adres = $rij["adres"];
$adresnr = $rij["adres_nr"];
$postcode = $rij["postcode"];
$woonplaats = $rij["woonplaats"];
$telefoonnr = $rij["telefoonnr"];
$geslacht = $rij["geslacht"];
$notitie = $rij["notitie"];
$id = $rij["id"];
print ("<center><table border='2' width='100%'
bordercolor='black'
cellspacing='1'>\n");
print ("<tr><td width='100%' bgcolor='white'><font
size='2'>VOORNAAM:
$voornaam");
print ("<tr><td width='100%' bgcolor='white'><font
size='2'>ACHTERNAAM:
$achternaam");
print ("<tr><td width='100%' bgcolor='white'><font
size='2'>ADRES:
$adres");
print ("<tr><td width='100%' bgcolor='white'><font
size='2'>ADRESNR:
$adresnr");
print ("<tr><td width='100%' bgcolor='white'><font
size='2'>POSTCODE:
$postcode");
print ("<tr><td width='100%' bgcolor='white'><font
size='2'>WOONPLAATS:
$woonplaats");
print ("<tr><td width='100%' bgcolor='white'><font
size='2'>TELEFOONNR:
$telefoonnr");
print ("<tr><td width='100%' bgcolor='white'><font
size='2'>GESLACHT:
$geslacht");
print ("<tr><td width='100%' bgcolor='white'><font
size='2'>NOTITIE:
$notitie");
print("</table></center><br><br>\n\n");
}
?>
</body>
</html>