我从数据库返回数据,除图像外,所有数据均有效,由于某种原因,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>";
}
?>
这是正在发生的事情,我的数据库。