Hi all ...
i have a script i want to use to get one line from a table (from a different page)
the line should have a specific word in it ...
this is what I got so far:
PHP Code:
$trigger = 'myname';
$stop = 0;
while ($start = strpos($code, '<TR', $stop))
{
$stop = strpos($code, '</TR', $start)+5; //this is the line it times out on!!!
$tmp = strpos($code, $trigger, $start);
if($tmp > $start && $tmp < $stop)
{
$length= $stop-$start;
$line .= Substr($code, $start, $length);
}
}
if($line == '')
{
$line = $trigger.' wasn't there sorry!';
}
Any thoughts???
thanks !
Peanuts
Bookmarks