Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

html-->mysql

Status
Not open for further replies.

maryer

IS-IT--Management
Jun 10, 2002
16
CY
dear all
i have html file, and input parameters are:

1) file.html

<h3>Events</h3>

(most recent first)

<ul>

<li>2003-02-12 10:27:57 : down
<li>2003-02-12 08:24:31 : back_up
<li>2003-02-12 08:13:55 : down
<li>2003-02-12 07:08:38 : back_up
<li>2003-02-12 01:22:40 : down
...........................................
etc etc etc etc

i need to get data about down and back_up and put it to the mysql table. If there is not back_up information, then data of down (in above case the last down doesn't have back_up so this down will not be transferred in table) we don't need to put on the table.

2) output parameters (mysql table where i have to put data of file.html):

Site | down | up
site1 | 2003-02-12 08:13:55 | 2003-02-12 08:24:31
site1 | 2003-02-12 01:22:40 | 2003-02-12 07:08:38
........................................................
etc etc etc

Should i use regular expression in loop?

Hope explanation is clear
Thank you in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top