prepare("SELECT * FROM blog WHERE id=?"); $statement->execute(array($_REQUEST['id'])); $result = $statement->fetchAll(PDO::FETCH_ASSOC); foreach ($result as $row) { $title = $row['title']; $description = $row['description']; $image = $row['image']; } ?>