Jump to content

HTML to PHP


RSprinkel

Recommended Posts

Hi all,

I am wondering if there is a utility or a way to extract data in HTML files into php/MySQL?

My scenario:

I currently am a League Owner for an online N2K3 Racing League and the files that the Sim puts out is in HTML format.  I would like to be able to process this information into an MySQL database and calculate the standings and stuff.  I am currently using a League utility which all the data is stored in an Access Database that puts out the race statistics and stuff into other HTML pages and having to upload it onto the site and linking to specific HTML pages .  I would rather it go into a MySQL Database if at all possible.

Thanks very much in Advance.

RSprinkel
Link to comment
https://forums.phpfreaks.com/topic/31047-html-to-php/
Share on other sites

well we will not be able to help to much here  - especially not knowing what your HTML looks like, but my guess is that you are going to need to do a series of preg_match_all()

probably a table layout of some type?

a preg_match_all() to get rows which I would guess are teams.

Then maybe a preg_match to start getting specific fields out of the row.

lots of work many times, and not a whole lot of fun. :)
Link to comment
https://forums.phpfreaks.com/topic/31047-html-to-php/#findComment-143345
Share on other sites

In my opinion your first consideration should how to get the data from the Access DB to the MySQL DB...once you have determined that, the actual positng of the data into a MySQL DB and associated displaying should be achievable.

[quote author=RSprinkel link=topic=119049.msg487058#msg487058 date=1166413444]
Hi all,

I am wondering if there is a utility or a way to extract data in HTML files into php/MySQL?

My scenario:

I currently am a League Owner for an online N2K3 Racing League and the files that the Sim puts out is in HTML format.  I would like to be able to process this information into an MySQL database and calculate the standings and stuff.  I am currently using a League utility which all the data is stored in an Access Database that puts out the race statistics and stuff into other HTML pages and having to upload it onto the site and linking to specific HTML pages .  I would rather it go into a MySQL Database if at all possible.

Thanks very much in Advance.

RSprinkel
[/quote]
Link to comment
https://forums.phpfreaks.com/topic/31047-html-to-php/#findComment-143587
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.