Jump to content

Insert HTML table data into a Access database or Array


hewstone999

Recommended Posts

I have a html table that contains data and i want to insert the data into an Access database. Any ideas how to do this?

 

Table1:

 

01, Rich, Mike, 23, fred lane,

02, James, milner, 45, School Lane,

03, Rob, Matthews, 89, College Road,

 

I connect to the database using this code:

 

$db_conn = new COM("ADODB.Connection");

$connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=". realpath("./Database1.mdb").";";

$db_conn->open($connstr);

Interesting.  Most of the time  you are creating and html table from data that exists in a database not the other way around. 

 

If this is just a one time thing you could copy and paste the html table from your browser window into an excel spread spreadsheet.  clean up the data if need be then import it into access.

 

 

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.