当前位置:编程学习 > php >>

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 mysql数据库操作类
下一个:php中文字母数字验证码实现代码

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,