我有一些页面,当我从一个页面中按下文本时,我想将一个 id 发送到另一个页面。我做到了,一切正常
<td align="left" colspan="100%" ><a class="Zaglavie" href="novina.php?id=<?= $rowB['id'] ?>&cat_id=<?=$rowB['cat_id']?>" > <?php echo $rowB['name']; ?></a></td>
我有那个网址:
http://localhost/Tnews/novina.php?id=114&cat_id=2
但是当我再次尝试这样做时,该代码出现了问题
<a class="titleMini" href="categories.php?id=<?= $row['path'] ?>&cat_id=<?=$row['id']?>"><?php echo $row["name"];
我得到了那个网址:
http://localhost/Tnews/categories.php?id=%3Cbr%20/%3E%3Cb%3ENotice%3C/b%3E:%20%20Undefined%20index:%20path%20in%20%3Cb%3EC:\xampp\htdocs\Tnews\Main.php%3C/b%3E%20on%20line%20%3Cb%3E164%3C/b%3E%3Cbr%20/%3E&cat_id=4