我在 php 中有一个 html 表
<?php
$result = mysqli_query($con,"SELECT * FROM recepten ORDER BY datum DESC");
echo "<table border='1' class='ms-list8-main'>
<tr>
<th class='ms-list8-top'>Link</th>
<th class='ms-list8-top'>Naam</th>
<th class='ms-list8-top'>Beschrijving</th>
<th class='ms-list8-top'>Datum</th>
</tr>";
while($row = mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td><a href='$url'>link</td>";
echo "<td class='ms-list8-even'>" . $row['naam'] . "</td>";
echo "<td class='ms-list8-even'>" . $row['beschrijving'] . "</td>";
echo "<td class='ms-list8-even'>" . $row['datum'] . "</td>";
echo "</tr>";
}
echo "</table>";
$url = $row['url'];
?>
链接echo "<td><a href='$url'>link</td>";
失效
链接的名称在一个名为“url”的 sql 表中
链接在每一行都不同
我怎样才能让它工作?