Okay, Im trying to make a little HTML grabber script ...So far I have got it to search the html file for a specific word, but was wondering how you would echo what line its on.
The problem is, the data I want to retreive is 2 lines under what I can search for.
For example (html)
<TD class=left>test</TD>
<TD>201</TD>
<TD>301</TD>
I can search for the test bit because thats unique, but the numbers arn't. So I have to search for "test", report what line its on, + 2 lines and return the result. =D