<?php
if (isset($_POST["alle"])) {
    $sql="SELECT * FROM tab_adressen" ;
    include("verbinden.php");
    include("menue.php") ;
} else{
include("menue2.php") ;
}
echo    "<table border='1'>
            <tr>
            <th>Lfd. Nr.</th>
            <th>ID</th>
            <th>Name</th>
            <th>Vorname</th>
            <th>Geb.-Datum</th>
            <th>Telefon</th>
            <th>E-Mail</th>
            <th>Aktion</th>
            </tr>
            ";
    $lf=1;
    while($dsatz = mysqli_fetch_assoc($result)) {
        echo "
            <tr>
            <th>$lf</th>
            <th>{$dsatz["id"]}</th>
            <th>{$dsatz["name"]}</th>
            <th>{$dsatz["vname"]}</th>
            <th>{$dsatz["geb"]}</th>
            <th>{$dsatz["tel"]}</th>
            <th>{$dsatz["email"]}</th>
            <th>
                <a href='aendern.php?id={$dsatz["id"]}'>Ändern</a> |
                <a href='loeschen.php?id={$dsatz["id"]}'>Löschen</a>
            </th>
            </tr>";
        $lf=$lf+1;
    }
    echo "</table>";


?>
1