Home > Backend Development > PHP Tutorial > PHP 生成静态页时怎么返回路径

PHP 生成静态页时怎么返回路径

WBOY
Release: 2016-06-13 13:16:44
Original
1043 people have browsed it

PHP 生成静态页时如何返回路径
如果该文档已经生成了静态就返回静态的路径,没有就返回动态的路径。
html 模板

{mzrui:list table='product' order='uid desc'}


{$prod_id['name']}
 PHP 生成静态页时怎么返回路径


{/mzrui}

要查询数据库返回内容和路径,不知道具体代码要如何写,不知道有没有这方面简单的例子????

------解决方案--------------------
如果只是查询数据库,例子倒是有很多:
http://www.w3school.com.cn/php/php_mysql_select.asp

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