Home  >  Article  >  Backend Development  >  这样写对吗?该怎么解决

这样写对吗?该怎么解决

WBOY
WBOYOriginal
2016-06-13 10:26:12842browse

这样写对吗?
$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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn