jeudi 21 juillet 2016

SQL table doesn't appear on page

I'm having some problems with displaying my table on a html page. Here's the code:

        $resultaten = $conn->prepare("SELECT * FROM GastenBoek ORDER BY ID DESC");
    $resultaten->execute();
    while($rij = $resultaten->fetch(PDO::FETCH_ASSOC))
    {
        $ID = $row['ID']; //Hier zeg ik : haal ID uit Row.
        $Email = $row['Email'];
        $Bericht  = $row['Bericht'];
        $Tijd = $row['Tijd'];
        $Datum = $row['Datum'];
        echo $Email;
    }

I've tried using PDOStatement but that didn't solve it at all. Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire