Hey,
I’m trying to build a profile base for a group of drivers, it needs to show how much money they have raised for a charity event which is kept on an external page. However, i can’t seem to find a way to successfully grab the needed content.
Here is the code i am trying at the moment, everytime i run it it only shows the “fail” line though.
[php]
$charity_link = “http://uk.virginmoneygiving.com/team/RallyforHeroes2012”;
$string = file_get_contents($charity_link);
if (preg_match(’/
echo $matches[1]; //This is text one
} else {
echo “fail”;
}
[/php]
It’s trying to grab the total figure on the right hand side, but it doesn’t show me anything? Please help! I have also tried removing the style=“padding-right: 10px;” from the end of the div but it still doesn’t work!
Much thanks,
Steve