I have a homepage and would make a link to some information on another page using preg_match.
I would like to link som information on this page http://www.svenskaspel.se[..]mp;parentid=663
I have this so far:
<?
$url = "http://www.svenskaspel.se/pl.dll?PageID=781&parentid=663";
$content = file_get_contents($url);
$regexp = "/matchVal=([0-9]+)'>([a-öA-Ö0-9\. üú -]+)<\/A>/";
preg_match_all($regexp,$content,$matches);
for($i = 0; $i <= count($matches[2]) ; $i++){
echo $matches[2][$i];
echo"<br>";
}
?>
But i would like to have the headlines, timestamps and the numbers also, not only the names... something like this page: http://www.cityshop.nu/vinstraden/v2/langenlistan.shtml
(The pages is in swedish, hope it's not to difficult to work with)
Great if someone could help me whih this...