怎么在一个web页面插入多条PHP查询的数据库数据

WBOY
Release: 2016-06-13 11:58:10
Original
764 people have browsed it

如何在一个web页面插入多条PHP查询的数据库数据?


今天试着做jquery mobile的PHP,感觉CSS他们做的很厉害

我想写个PHP程序和视图分开的程序,但是有个问题困惑我了T T
就是如果这些国家是从数据库里查出来的,如何让他们自己建立一行?
如果是程序和页面在一起的用循环就可以,可是分离的怎么办才行?求帮助T T

    <ul data-role="listview" data-inset="true" data-filter="true" data-filter-placeholder="ocean filter"><br />          <li data-role="list-divider">欧洲</li><br />              <li><a href="#">德国</a></li><br />              <li><a href="#">英国<span class="ui-li-count">6</span></a></li><br />          <li data-role="list-divider">亚洲</li><br />              <li><a href="#">中国<span class="ui-li-count">14</span></a></li><br />              <li><a href="#">印度</a></li><br />          <li data-role="list-divider">非洲</li><br />              <li><a href="#">埃及</a></li><br />              <li><a href="#">南非</a></li><br />    </ul>
Copy after login



------解决方案--------------------
不是一样的要循环吗?

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!