Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("../knhbSpider.php");
- $spider = new knhbSpider;
- $spider->mysqlHost = "localhost";
- $spider->mysql_user = "xxxx";
- $spider->mysql_db = "xxxx";
- $spider->mysql_password = "xxxx";
- $club_id = mysql_escape_string($_GET['club_id']);
- $team_name = mysql_escape_string($_GET['team']);
- $results = $spider->lookupResultsForTeam($club_id,$team_name);
- ?>
- <h1><?=$results[0][club_name] . " " . $results[0][team1];?></h1>
- <?
- if (is_array($results)) {
- foreach ($results as $result) {
- $match_type_string = "";
- if($result[match_type] == 2) $match_type_string = "(Zaal wedstrijd) ";
- ?>
- <p>
- <?
- echo ($result[out])? "Uit" : "Thuis";
- echo " ".$result['club_name2'];
- echo " ".$result[team2];
- ?>
- </p>
- <p><?echo $match_type_string;?></p>
- <p><? echo date("d-m-Y",$result[date]);?></p>
- <p>Resultaat: <? echo $result[goals1] . " - " . $result[goals2];?></p>
- <?
- }} else {
- ?>
- <p>Er zijn geen uitslagen voor dit team gevonden in de database.</p>
- <?
- }
- ?>
Add Comment
Please, Sign In to add comment