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

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

PHP中文网
Release: 2018-05-15 10:57:45
Original
4078 people have browsed it

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

php do while方法

     一般需要先

$row=mysql_fetch_array($result)
Copy after login

然后

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

php while循环

while($row=mysql_fetch_array($result)){
}
Copy after login

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

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
Latest Articles by Author
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template