0) {
while ($row = mysqli_fetch_assoc($result)) {
$title = $row["title"];
$author = $row["author"];
$published_at = $row["published_at"];
$content = $row["content"];
echo "
$title
"; echo "By $author
"; echo "$published_at
"; echo "$content
"; } } else { echo "No news articles found."; } // Close the connection mysqli_close($conn); ?>
Commentaires
Enregistrer un commentaire