Cliff Roman wrote:
Imagine that this file looked like this
<H3 style="color : #173D54">
Session: Practice
</H3>
<H3 style="color : #173D54">
Date: 02/18/04
</H3>
Here is the part that I am unsure of.. My first step I guess is learning
how to say basically
After "Session:" The next word or string would = $session (in this case
Practice)
or in a repeating area (like a table)
<TD style="background : #CEDAEB">
1
</TD>
<TD style="background : #CEDAEB">
79
</TD>
How I would end up saying
After "<TD style="background : #CEDAEB">", the next item would = $rank (in
this case 1)
then have it say
After the next "<TD style="background : #CEDAEB">" it would = $score
etc
Maybe I am approaching this all wrong, I am unsure
Thanks
Ignore the html tags, but look left to right, like you would be reading
a book and confirm a few things for me...
First, (again, reading from left to right) the start of a new table
begins with "Session:" true?
Second, the next description that is fixed is "Date:" true?
Third, until the next "Session", everything else that follows is
numeric, true?
Fourth, how many columns wide is your table, or is it variable?
Last, are your tables one under the other, or side by side? Or do they
have anything else that might get in the way.
Why?
Well I can try and bash out a script once I know some rough facts. I
can use strip_tags() to get rid of the html, then after that we are left
with a stream of text. We can use explode to put each word/number in to
an element of an array on its own - We can use "Switch:" as a flag to
indicate a new table of scores is starting or ending... and we can have
everything space delimited which makes it easy to read and re-write
everything else...
I'll keep an eye here for your answer and I will *try* to help further,
however I can't guarantee...
randelld