Wedstrijdschema: seizoen $cfg_season
";
$sql = "SELECT *, DATE_FORMAT(datum1_schema, '%d-%m-%Y') AS datum1_schema,TIME_FORMAT( tijd_schema, '%H:%i' ) as tijd_schema FROM `schedule` WHERE datum1_schema >= CURDATE() ORDER BY datum2_schema";
$exec = mysql_query($sql);
if($resultaat = mysql_query($sql)){
if(mysql_numrows($resultaat)==0){
echo " ";
}
else {
echo " ";
while ($rij = mysql_fetch_assoc($resultaat)) {
$id = $rij["id"];
$teamA = $rij["thuis_schema"];
$teamnameA = get_teamhome($teamA);
$teamB = $rij["uit_schema"];
$teamnameB = get_teamaway($teamB);
$vriendthuis = $rij["vriendthuis_schema"];
$vrienduit = $rij["vrienduit_schema"];
$teamfriendnameA = get_teamhome($vriendthuis);
$teamfriendnameB = get_teamaway($vrienduit);
$toernooi = $rij["toernooi_schema"];
$pic1 = $rij["pic1_schema"];
$pic2 = $rij["pic2_schema"];
$datum1 = $rij["datum1_schema"];
$tijd = $rij["tijd_schema"];
$locatie = $rij["locatie_schema"];
$soort_schema = $rij["soort_schema"];
echo "
";
if ($soort_schema == '1') {
echo "
";
}
if ($soort_schema == '2') {
if (strlen($vriendthuis) > 2) {
echo "
";
}
else {
echo "
";
}
}
if ($soort_schema == '3') {
echo "
";
}
echo " ";
}
}
}
echo "