我想在php中使用mysql結果可點擊鏈接的結果。我是新來的PHP和請幫助。在SQL中創建一個可點擊的鏈接從sql結果
<?php mysql_connect("localhost", "root", "pass") or die(mysql_error());
mysql_select_db("Branches") or die(mysql_error());
$data = mysql_query("SELECT * FROM items order by ID desc Limit 5") or die(mysql_error());
while ($info = mysql_fetch_array($data)) {
echo $info['title'];
echo " <br>";
echo $info['descr'];
echo "<br>";
echo "<br>";
} ?>
你在哪裏需要鏈接? –
你可以做'echo'bla link';'最新的問題是什麼? –
看起來像,你想顯示鏈接點擊數據庫中的數據。 ?? – Ravi