Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in D:\WWW\PHP\mypage.php on line 17
2015-12-25
while($row=mysql_fetch_assoc($result)){
echo $row['id'].'-'.$row['title'].'<br/>';
}
提示:Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in D:\WWW\bbs\mypage.php on line 26
echo $row['id'].'-'.$row['title'].'<br/>';
}
提示:Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in D:\WWW\bbs\mypage.php on line 26
2015-12-24
如果while语句出现了Assignment in condition的警告可以按如下的模式写
while(($row=mysql_fetch_assoc($result))!=false){
echo $row['id'].'-'.$row['info'].'<br/>';
}
while(($row=mysql_fetch_assoc($result))!=false){
echo $row['id'].'-'.$row['info'].'<br/>';
}
2015-12-11
( ! ) Fatal error: Function name must be a string in D:\Demo\test.php on line 3
这是什么错误
这是什么错误
2015-11-17