Reply
regular expression
Old 10-05-2006, 01:53 AM regular expression
Average Talker

Posts: 28
Name: suman
How can i store the data in database from below html code. Split the value according to <tr> and <td> and dump the values into the database.can anybody help me to solve it

<TABLE border=1 width="100%" cellspacing=0>
<tr>
<td bgcolor="#cccccc" colspan=8><BR>&nbsp;&nbsp;<font size="4">Logs from 2006-09-26 to 2006-09-30</font><BR>&nbsp;</td></tr>
<TR bgcolor="#ffffff">
<TD>2006/09/26 00:00:05</TD>
<TD>STUDY</TD>
<TD>viewreport</TD>
<TD>ES911 accessed the report of WILSON, BAYARD W III. [CT] <font size=-1>(1.2.840.113696.314336.500.268439.20060925230832 )</font> [Sep 25 2006]</td>
</TR>
<TR bgcolor="#ffffff">
<TD>2006/09/26 00:00:18</TD>
<TD>STUDY</TD>
<TD>editreport</TD>
<TD>ES911 edited the report of WILSON, BAYARD W III. [CT] <font size=-1>(1.2.840.113696.314336.500.268439.20060925230832 )</font> [Sep 25 2006]</td>
</TR>
</TABLE>
allsuman is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 10-05-2006, 02:15 AM Re: regular expression
jito's Avatar
MY LIFE IS 'i' LIFE

Posts: 551
Name: surajit ray
Location: inside the heart of my friends
preg_match_all('/<td[^>]*>([^<]*)<\/td>/i', $ur_html_here, $output);
__________________
Think+, work +, but not HIV + :)
jito is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to regular expression
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11131 seconds with 12 queries