View Single Post
  #1 (permalink)  
Old 07-20-2008, 04:06 PM
gilgalbiblewhee gilgalbiblewhee is offline
Registered User
 
Join Date: Jul 2004
Posts: 249
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); 
Reply With Quote