Re: [請益] 用while讀資料的問題
※ 引述《meccachen (禾呈)》之銘言:
: $sql="select * from talkarea where condition=0 order by no desc";
: $result=mysql_query($sql);
: while (list($no,$name,$mail,$subject,$content,$condition,
: $which_no,$putdate)=mysql_fetch_row($result))
: 這是某段程式碼~
: 但執行時卻出現
: Warning: mysql_fetch_row():
: supplied argument is not a valid MySQL result resource in
: c:\appserv\www\talk\view.php on line 10
: 小弟新手~想了一晚~實在不知如何是好~
: 繁請高手解惑
$sql="select * from talkarea where `condition`=0 order by `no` desc";
--
█████████████████
█ ████████████████
█████████████████
█ ████████████████
█████████████████
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.219.50.130
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 4 篇):