当前位置: 代码迷 >> PHP >> 这样写对吗?该怎么解决
  详细解决方案

这样写对吗?该怎么解决

热度:123   发布时间:2012-06-05 13:54:06.0
这样写对吗?
$pvrow=mysql_fetch_array($result);
if($pvrow)
{

这样能表达出 当mysql_fetch_array有内容时候才进行下面的执行

------解决方案--------------------
没问题, 没有了就会返回false。

Returns an array of strings that corresponds to the fetched row, or FALSE if there are no more rows.
  相关解决方案