您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
免费发信息
三六零分类信息网 > 兴安分类信息网,免费分类信息发布

while mysql_fetch_array有关问题

2025/2/2 22:23:30发布8次查看
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.
兴安分类信息网,免费分类信息发布

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录