这样写对吗?该怎么解决

WBOY
Release: 2016-06-13 13:28:51
Original
859 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template