I have an HTML file with multiple tables throughout the code. The function of this file is to export these to other HTML files (one file for each table). So this file works as a kind of information bank where I later if I want, I just have to change the first file and not go looking for such a specific file to edit the table
Is there any way to do this in php? I've tried include and require sends the whole html, not just the
<table></table> , which I want.
Do you have this information stored in the database? Wouldn't it be easier to save them in the database and assemble the HTML later? If this is not possible, save this HTML document in some folder and then request it using Curl, I believe that this way you will be able to include its content to the rest of the page.