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

Asked

Viewed 50 times

3

I have an HTML file with multiple tables along the code. The function of this file is to export these files to other HTML files (one file per table). So this file works as a kind of database where I later if I want to, 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 all the html, not just to <table></table>, that I want.

1 answer

1

Do you have this information stored in the database? Wouldn’t it be easier to save it in the database and mount 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 can include its content to the rest of the page.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.