Forum Moderators: coopster
function getDateLink($day, $month, $year)
{
include 'open.php';$query="Select * From challenge Where confirmed = 'Yes' AND month = '$month' AND year = '$year'";
$result = mysql_query($query);
$teamday='';
$teammonth='';
$teamyear='';
$link = '';
$cnt = 0;
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
$teamday[]=$row['day'];
$teammonth[]=$row['month'];
$teamyear[]=$row['year'];
[b]$cnt++;[/b]
if(in_array($day,$teamday) and in_array($month,$teammonth) and in_array($year,$teamyear))
{
$link = "displaymatches.php?day=$day&month=$month&year=$year";
}
}
return $link;
include 'close.php';
}
I think that will help you get it sorted. See especially messages #2 and #7
[edited by: ergophobe at 6:52 pm (utc) on Mar. 4, 2005]