I am trying to add to my dynamic script i have made
the html code i pull from has changed
and now the code i used before isnt working
this is the new html code as it is seen via view source (just a snippet the actual source has a lot of tables in it)
<tr><td>Level:</td>
<td>7</td>
what i need to do is get the number in between Level:</td>(lots of spaces)<td> and the </td> behind the number
so i tried using this code
define('CACHE_FILE', 'feed.cache'); // Where we store a local copy of the feed for caching purposes(can change)
$result = file_get_contents(CACHE_FILE); // Use cache (html code from our cache file)
//Begin Level
$levelb = '<td>Level:</td>
<td>';
$levele = '</td>';
if ( ( $pos1 = strpos ( $result, $levelb ) ) !== false and $level =="1")
{
$result1 = substr ( $result, ( $len1 = ( $pos1 + strlen ( $levelb ) ) ), ( strpos ( $result, $levele, $len1 ) - $len1 ) );
}
echo $result1;
and i come up blank
any clue?