Home >php教程 >php手册 >php循环输出数据库内容的代码

php循环输出数据库内容的代码

PHP中文网
PHP中文网Original
2018-05-15 10:57:454054browse

php循环输出数据库内容的代码:

php do while方法

     一般需要先

$row=mysql_fetch_array($result)

然后

do{
something
}
while($row=mysql_fetch_array($result))

php while循环

while($row=mysql_fetch_array($result)){
}

以上就是php循环输出数据库内容的代码的内容,更多相关内容请关注PHP中文网(www.php.cn)!

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