首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > PHP >

while mysql_fetch_array有关问题

2012-06-21 
while mysql_fetch_array问题刚学PHP,有点疑问正常取出记录循环用whilewhile($num_rowsmysql_fetch_objec

while mysql_fetch_array问题

刚学PHP,有点疑问
正常取出记录循环用while
while($num_rows=mysql_fetch_object($result)){
  输入字段内容等。。
}

就是上面的while后面的条件语句不是很明白。正常的while 后面肯定是跟一条件的表达式,如($i <= 10)。而上面为什么直接赋值了。并且结果也正常循环了。
不是很明白。有谁指点下。。。

同样的语句还是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. 


热点排行