setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); //echo "Connected successfully"; } catch(PDOException $e) { echo "Database connection failed: " . $e->getMessage(); } if (isset($_GET["y"])) { $periode=$_GET["y"]; if ($periode == 'old') { echo "Archief fotoalbums | Oude Trekker Club Roeselare"; } else { echo "Fotoalbums ".$periode." | Oude Trekker Club Roeselare"; } } else { $periode='all'; echo "Alle fotoalbums | Oude Trekker Club Roeselare"; } ?> Albums
query($query); $num = $result->rowCount(); $i=0; echo ''; ?>

Albums

query($query); while ($row = $result->fetch()) { $id=$row["id"]; $name=$row["name"]; $description=$row["description"]; // removes slashes $description=stripslashes($description); $bestanden = fotobestanden($id); if ($bestanden <> 0) { $aantalbestanden=count($bestanden); echo ""; } else { echo ""; } echo "

$name

"; echo "
"; } ?>