当前位置: 代码迷 >> PHP >> mysql_fetch_array可以这么写吗
  详细解决方案

mysql_fetch_array可以这么写吗

热度:183   发布时间:2013-11-01 14:43:02.0
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))
  相关解决方案