Calendar

= ‘2016-01-01’ AND `sdate` <= '2016-12-31' AND `wdfyouth` = 'on' ORDER BY `sdate`"; $result = mysql_query($query,$dbh) or die(mysql_error()); ?>

“;
}
echo “

“;
$alphamonthhold = $alphamonth;
}
echo “

“;
echo ‘

‘ . $alphamonth . ‘

‘;
echo “

“;
echo substr($row[‘sdate’],8,2);
if(substr($row[‘sdate’],8,2) != substr($row[‘edate’],8,2))
{
echo “-” . substr($row[‘edate’],8,2) . ” “;
}
echo “
“;
echo ““;
echo $row[‘tournament’];
echo “
“;

if ($row[‘cancelled’] == “on”)
{
echo “**CANCELLED**“;
}
echo “” . $row[rrn] . ““;
echo “

“;
echo ” “;
echo “
“;
echo $row[‘state’];
echo “
“;
$query2 = “SELECT * FROM `tournamentresults` WHERE `tournamentid` = ‘$rrn’ ORDER BY `rrn`”;
$result2 = mysql_query($query2,$dbh) or die(mysql_error());
if($row2 = mysql_fetch_array($result2))
{
echo “results“;
}

echo “

“;

?>