如何使用 SQL 和 PHP 将链接添加到我的 table

How to add links into my table with SQL and PHP

到目前为止,我的代码运行良好,但我想让每个 table 单元格在打开真实图像的地方通过单击打开。 我该怎么做?

echo "<table>";
$res = "SELECT * FROM table1";
$result = $mysqli->query($res);
    while($myRow = $result->fetch_array())
    {   
        echo "<tr>";
        echo "<td>";?> <img src=" <?php echo $myRow["image"];  ?>" height="100"    width="100"><?php echo "</td>"; 
        echo "</tr>";
    }
echo "</table>"

只需将小图片包裹在 <a> 个标签中

<a href="http://path_to_images/<?=$myRow["image"]?>">
    <img src="<?php echo $myRow["image"];  ?>" height="100" width="100">
</a>
echo "<td>";?>
  "<a href=" <?=$myRow["image"];  ?>">
         <img src=" <?php echo $myRow["image"];  ?>" height="100" width="100" \>"<?php echo "
  <a/>
</td>";

只是把<a href=""><a>放在img外面?