View Single Post
Old 11-24-2008, 06:55 PM   #3 (permalink)
Wildhoney
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Whilst Tanax is right about this being in the wrong forum, let me at least have an attempt at answering your question. The small job of moving the thread elsewhere will take me a second at most, so don't worry about that at all!

To get that data in the table you're going to have to use regular expressions, something like the following should get you the "me" text. $szData is the item which contains the HTML table, and perhaps other information also.

php Code:
if (preg_match('~<td><a.*>(.+?)</a></td>~is', $szData, $aMatches))
{
    echo 'Text item = ' . $aMatches[1];
}

Please keep in mind, if the table item differs then the regular expression used here will also need to be modified to compensate for that.

Last of all, a warm welcome to TalkPHP! I hope this helps you.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
The Following User Says Thank You to Wildhoney For This Useful Post:
jetnet1 (11-25-2008)