Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-20-2008, 09:07 PM   PM User | #1
gilgalbiblewhee
Regular Coder

 
Join Date: Mar 2005
Posts: 735
Thanks: 4
Thanked 1 Time in 1 Post
gilgalbiblewhee is an unknown quantity at this point
preg_match? how to read within the td tags

I have a table in html which I need to convert to a database table for MySQL (I use HeidiSQL).
SO there are a few td tags and then a tr tag indicating a new record. How would I be able to insert them in the db table? DO I use preg_match? How would it be written.
PHP Code:
    preg_match_all('|id="(.*)">|U'$contents_of_page$idoutPREG_SET_ORDER); 
    
preg_match_all("|<[^>]+>(.*)</[^>]+>|U"$contents_of_page$outPREG_SET_ORDER); 
gilgalbiblewhee is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:42 PM.


Advertisement
Log in to turn off these ads.