在我的帖子表单中,我有一个“显示”页面,我在其中回显数据库中的所有内容。我正在尝试添加指向图像行的链接。但是当我刷新页面时,它只是白色的。
<?php
$sql_connection = mysql_connect("localhost", "user", "root");
mysql_select_db("database_name", $sql_connection);
$result = mysql_query("SELECT * FROM content ORDER BY id DESC");
while ($row = mysql_fetch_array($result)) {
echo "<div>";
echo "<a href="http://www.link.com"><img src=\"http://placehold.it/80x80\"></a> ";
echo "<br />";
echo "<br />";
echo "<h3>" . $row["who"] . "</h3><br />";
echo "<h4>" . $row["what"] . "</h4><br />";
echo "<h4>" . $row["where"] . "</h4><br />";
echo "<h3>" . $row["contact"] . "</h3><br />";
echo "<img src=\"../img/share_facebook.png\"> ";
echo "</div>";
}
mysql_close($sql_connection);
?>
谁能解释为什么会发生这种情况?