How to export a specific table from an html to another html via php?

Posted on

Question :

I have an HTML file with multiple tables throughout the code. The function of this file is to export these same files to other HTML files (one file per each table). So this file works as a kind of information bank where I later want, I just have to change the first file and do not go looking for such a specific file to edit the table

Is there any way to do this in php? I’ve tried the include and require sends the whole html, not only the <table></table> , that I want.


Answer :

Do you have this information stored in the database? Would not it be easier to save them in the bank and build the HTML later? If this is not possible, save this HTML document to a folder and then request it using Curl, I believe you can then add the content to the rest of the page.


Leave a Reply

Your email address will not be published. Required fields are marked *