【发布时间】:2017-01-19 07:37:53
【问题描述】:
我正在尝试将一些href 与我从数据库中获取的值连接起来。但是我迷路了''。 "" \
我确定我错过了一些小东西,但我就是看不到它。
while ($row = $result->fetch_assoc()) {
echo "<tr>";
echo."<td>" . $row["interest"] . "</td>"
."<td>"."<a href=\"http://localhost/page/files/".$row["filename"]\"/>" . $row["filename"] . " </a></td>"
."<td>" . $row["reg_date"] . "</td>";
}
【问题讨论】:
-
将 $row["filename"]\"/>" 替换为 $row["filename"] 。 "\"/>"
-
顺便说一句。你在第二个
echo之后有过多的点。
标签: php