Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
07-20-2008, 10:07 PM #1
- Join Date
- Mar 2005
- Thanked 1 Time in 1 Post
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.
preg_match_all('|id="(.*)">|U', $contents_of_page, $idout, PREG_SET_ORDER);
preg_match_all("|<[^>]+>(.*)</[^>]+>|U", $contents_of_page, $out, PREG_SET_ORDER);