作者ast9869 (老公老王傻傻分不清楚! B)
看板PHP
标题Re: [请益] 用while读资料的问题
时间Tue Jul 25 15:34:58 2006
※ 引述《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