猿问

为什么blockquote标记在PHP循环中不起作用?

我从数据库返回数据,除图像外,所有数据均有效,由于某种原因,blockquote标记仅在第一行打印,我embed.js用于返回Imgur照片和.gifs


html


<script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>

的PHP


<h1>Fotos e gifs</h1>

<?php

include_once("config.php");

$result = mysqli_query($mysqli, "SELECT * FROM posts ORDER BY codigo DESC");

while($res = mysqli_fetch_array($result)) {

    echo "<h3>".$res['titulo']."</h3>";

    echo "<blockquote class='imgur-embed-pub' data-id='".$res['link_imagem']."'></blockquote>";

    echo "<hr>";

}   

?>

这是正在发生的事情,我的数据库。

慕盖茨4494581
浏览 132回答 1
1回答
随时随地看视频慕课网APP
我要回答