日期:2014-05-16  浏览次数:20537 次

mysql_fetch_array可以这样写吗?
while($row=mysql_fetch_array($result))可以写成

while(mysql_fetch_array($result)=true)


$row=mysql_fetch_array($result)
读取$row




------解决方案--------------------
当你需要隔行读取的时候可以这样写
但 while(mysql_fetch_array($result)=true)
应写作 while(mysql_fetch_array($result)==true)
或 while(mysql_fetch_array($result))