Link to home
Start Free TrialLog in
Avatar of server_room
server_roomFlag for United States of America

asked on

Converting html table data into usable arrays

I'm trying to convert a lot of static html pages into usable arrays using PHP.
All of the pages follow this same pattern:

*********************************************************
source code can be found at this URL: http://12-250-153-83.client.attbi.com:10/table.html

***************************************************************************

I might have been able to work this if the cities were not bunched into a group.
But I need an array with the keys name, address, city, phone, etc.

Maybe the map links will help? But I need the phone and the name as well

ASKER CERTIFIED SOLUTION
Avatar of Hatemben
Hatemben

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of VGR
VGR

crazy you Hatemben ;-)
Avatar of server_room

ASKER

This is a wonderful script, but is there a way to make it so that I don't have to put the state for each different html page?

because I have like 3,000 of these :(, if not I know of a way to match the states up with a coresponding database.

Great job btw!
You can browse your 3000 files and get the state name with a preg_match ..., then inject it in this script and do the rest of the job ...

Just try it with 2 or 3 files manually, then you can do it with all the rest :)