所以这是我的代码:
$sql = "SELECT * FROM $tbl_name ORDER BY id DESC LIMIT $start, $limit";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)) {
echo "<a href =\"vicevi.php?id=$row[id]\">".$row['Title'];"</a>";
echo "<br>";
echo nl2br($row["VicText"]);
echo "<hr>";
}
我收到了链接vicevi.php?id=x
( x =任意数字),但它没有打开特定ID。谁能在这帮助我?
答案 0 :(得分:1)
echo "<a href =\"vicevi.php?id=" . $row["id"] . "\">".$row['Title'] . "</a>";
除$row[id]
问题外,您还有;
个额外费用。
答案 1 :(得分:0)
echo "<a href =\"vicevi.php?id=".$row['id']."\>".$row['Title']."</a>";