You could use the $mo and $mth variables for that purpose... Basically, if $mo hasn't been defined, then it's this month. If it is defined, then get the month name for that month's number from $mth.
If you paste this code somewhere after
PHP Code:
<?php $OL=1; require("calendar.php"); ?>
but before the last
PHP Code:
<?php require("calendar.php"); ?>
it should give you exactly what you're looking for.
PHP Code:
if (!defined($_REQUEST["mo"])){
$mo = date("n"); // yes this is "n" not "m"
} else {
$mo = $_REQUEST["mo"];
}
echo "Here are events for ".$mth[$mo]."<br>";
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
|