Sélectionner une page

Détail Equipe

[insert_php] $IDEquipe=$_GET[« Equipe »];$IDDivision=$_GET[« Division »]; if ($_GET[« Indice »] != «  »){$Indice=$_GET[« Indice »];}else{$Indice= »N103″;} if ($_GET[« Equipe »] != «  »){$Equipe=$_GET[« Equipe »];}else{$Equipe=$IDEquipe;} [/insert_php] Rhisnes [insert_php] echo $IDEquipe{1};[/insert_php]
[insert_php] echo $IDDivision;[/insert_php]

Classement
[insert_php] $adresseweb = ‘http://www.vedrinamur.be/dynam/claserie.php?Serie=’.$IDDivision; $page_classement = file_get_contents($adresseweb); $searchlink = ‘‘; $search = array($searchlink, « href=\ »calequipe.php? », « width=\ »650\ » », »width=\ »35\ » », »width=\ »45\ » », »bgcolor=\ »#5B79A3\ » »); $replace = array(« « , « href=\ »http://www.ttrhisnes.be/equipe/?Division= ».$IDDivision. »& », « width=\ »520\ » », « width=\ »45\ » », « width=\ »55\ » », « bgcolor=\ »#ffffff\ » »); $new = utf8_encode(str_replace($search, $replace, $page_classement)); $pattern = ‘#(.*)#Ui’; preg_match_all($pattern, $new, $n); echo $n[0][0]; [/insert_php] Résultats
[insert_php] $adresseweb = ‘http://www.vedrinamur.be/dynam/calequipe.php?Indice=’.$Indice.’&Equipe=’.$Equipe; $page_classement = file_get_contents($adresseweb); $search = array(« href=\ »feuillematch.php? », « href=\ »calequipe.php? », « width=\ »650\ » », »width=\ »90\ » », »width=\ »12\ » »);$replace = array(« href=\ »http://www.ttrhisnes.be/feuille-de-match/? », « href=\ »http://www.ttrhisnes.be/equipe/?Division= ».$IDDivision. »& », « width=\ »520\ » », »width=\ »120\ » », »width=\ »25\ » »); $new = utf8_encode(str_replace($search, $replace, $page_classement)); $pattern = ‘#(.*)#Ui’; preg_match_all($pattern , $new, $n); echo $n[0][0]; [/insert_php]