====== Übung Adressen ======
{{:inf:mysql:mysql-adressen01.jpg|}}
* {{:inf:mysql:backup.rar|Download der Adressen}}
{{:inf:mysql:mysql-adressen02.jpg|}}
++++ Lösung personen.php|
[ Neuer Datensatz ]
Mitglieder
Daten nicht eingetragen!
"; } } if (empty($_GET["feld"])) { $_GET["feld"]="zuname"; $_GET["dir"]="ASC"; } $sql1 = "SELECT * FROM adressen ORDER BY $_GET[feld] $_GET[dir]"; $ergebnis = mysql_query($sql1); mysql_close($db); $anzahl = mysql_num_rows($ergebnis); if ($_GET["aktion"]=="eintrag") { ?>Datensätze
| Nr. | Anrede ![]() |
Name ![]() |
Vorname ![]() |
Adresse | PLZ | Ort ![]() |
Telefon | "; } else { echo " | |
|---|---|---|---|---|---|---|---|---|---|
| "; } echo "$i | "; echo "$anrede | $zuname | $vorname | $adresse | $plz | $ort | $tel | "; echo "![]() |
body {
padding:25px;
font-family:Arial;
background-color:white;
color:black;
}
h1 {
font-size:24pt;
background-color:rgb(204,204,204);
color:rgb(70,70,70);
padding:7px;
font-weight:bold;
}
.high {
background-color:rgb(200,200,200);
}
.low {
background-color:rgb(210,180,180);
}
th {
text-align:left;
background-color:black;
color:white;
padding:5px;
}
table {
border-collapse:collapse;
}
td {
padding:5px;
}
form {
background-color:rgb(210,180,180);
width:350px;
padding:10px;
}
a:link {
color:blue;
text-decoration:none;
}
a:visited {
color:blue;
text-decoration:none;
}
a:hover {
color:white;
background-color:blue;
text-decoration:none;
}
++++