开发者

Making MySQL inserts from multiple dynamic HTML tables generated in PHP

I am working with a PHP file that generates many dynamic HTML tables using an included PHP library. This is a sample of the HTML output (I have listed only two tables and reduced their rows to 5 and 7 respectively) http://pastebin.com/PCwXyAjd

I'm trying to fetch the开发者_Go百科 data from the HTML table into a MySQL database. I do not have access to view-source or edit that included PHP library so I cant make it write straight into MySQL when creating the HTML table.

Please how can I make my PHP file write this generated HTML data into MySQL? Thanks.


Okay so I found this http://simplehtmldom.sourceforge.net/

It's a PHP Simple HTML DOM parser. I am investigating it now and I think it should do the trick - it will parse the HTML contents and then I can post into MySQL - will keep you posted.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜