while mysql_fetch_array问题
刚学PHP,有点疑问
正常取出记录循环用while
while($num_rows=mysql_fetch_object($result)){
输入字段内容等。。
}
就是上面的while后面的条件语句不是很明白。正常的while 后面肯定是跟一条件的表达式,如($i 不是很明白。有谁指点下。。。
同样的语句还是mysql_fetch_array等。在线等
------解决方案--------------------
其实就相当于 while(NULL != ($num_rows=mysql_fetch_object($result)))
------解决方案--------------------
Returns an object with properties that correspond to the fetched row and moves the internal data pointer ahead.
or FALSE if there are no more rows.
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号