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))
脱裤子放屁,不是多此一举?
为什么这样就隔行了,我试了下确实隔行了
mysql_fetch_array 读取当前记录,并使记录指针指向下一条记录
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号