Hello
I'm trying to get this to work, I know it doesn't but its the best way to illustrate what I'm trying to achieve:
$wildcard = "%";
$file = "../calendar/".$wildcard."$this_year$month_name$the_day.txt";
if (file_exists($file)) {
echo "<TD height=\"17\" width=\"35\" valign=\"middle\" align=\"center\" ><a href=\"index.php?...something else\" class=\"calendaroff\">$the_day</a></td>\n";
} elseif(!file_exists($file)) {
echo "<TD height=\"17\" width=\"35\" valign=\"middle\" align=\"center\"><a href=\"index.php?.......a different something\" class=\"calendar\">$the_day</a></td>\n";
}
I'm trying to get it to execute the 'if 'statement if a file exists that is named like "../calendar/$username$this_year$month_name$the_day.txt" where $username is the random factor.
Can anyone help?
Many thanks John