prepare("SELECT * FROM images"); $stmt->execute(); $images = $stmt->fetchAll(PDO::FETCH_ASSOC); foreach ($images as $image) { echo ' '; } ?>