PHP 點樣可以 echo 條link,而又有data

2007-05-31 11:21 pm
if ($record>=1) //如果結果筆數大於等於1
{
while (list($class,$subject,$text,$post_time,$deadline,$id)=mysql_fetch_row($result))
{
echo " ".$class;
echo " ".$subject;
echo " ".$text;
echo " ".$post_time;
echo " ".$deadline;

echo &#39; <a rel=\"nofollow\">修改</a> &#39;;
echo &#39; <a rel=\"nofollow\">刪除</a> &#39;;

回答 (1)

2007-05-31 11:26 pm
✔ 最佳答案
例子如下,
if ($record>=1) //如果結果筆數大於等於1
{
while (list($class,$subjec t,$text,$post_time,$ deadline,$id)=mysql_ fetch_row($result))
{
echo " ".$class;
echo " ".$subject;
echo " ".$text;
echo " ".$post_tim e;
echo " ".$deadline ;

echo ' <a href="nofollow.php?action=edit&id='.$id.'" >修改</a> ';
echo ' <a href="nofollow.php?action=del&id='.$id.'" >刪除</a> ';
參考: ME


收錄日期: 2021-04-14 20:22:04
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20070531000051KK01772

檢視 Wayback Machine 備份