开发者

copying html page with mysql data in php

开发者 https://www.devze.com 2022-12-28 09:50 出处:网络
I am trying to copy a file 开发者_Python百科into a folder called profile. I got that working, but I need the page to be .html. I also need data from MySQL to put in the .html page. How do I go about t

I am trying to copy a file 开发者_Python百科into a folder called profile. I got that working, but I need the page to be .html. I also need data from MySQL to put in the .html page. How do I go about that?


You can 'fake it' being a .html file using .htaccess:

AddType application/x-httpd.php .html .htm


Create a php file which loads the html file and then inserts data from mysql before outputting the results.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号