copying html page with mysql data in php
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.
精彩评论