N
Nick
Guest
Hi everyone,
First off, I apologize in advance for being a total newb.
Using the PHP calendar from http://keithdevens.com/software/php_calendar , I want to include the $month variable in the day links. For example, right now I'm using:
<?php
$days = array(
1=>array('/tag/april+1','linked-day'),
);
include 'calendar.php';
echo generate_calendar(2009, 4, $days, 5, '/tag/april');
?>
to link day 1 on the calendar to website.com/tag/april+1
What I want, though, is for the "april" in the URL to update along with the calendar. So, I want to include $month somehow to display the current month. Does anyone know how to do this?
Thanks for any info.
The URL I'm trying to link to isn't site.com/page.php?month=April&year=09,
it's
site.com/tag/april+1
Are you saying I should just write in $S_GET['month'] in place of 'april'? Like:
<?php
$days = array(
1=>array('/tag/$_GET['month']+1','linked-day'),
);
include 'calendar.php';
echo generate_calendar(2009, 4, $days, 5, '/tag/april');
?>
If so, that's not working for me.
First off, I apologize in advance for being a total newb.
Using the PHP calendar from http://keithdevens.com/software/php_calendar , I want to include the $month variable in the day links. For example, right now I'm using:
<?php
$days = array(
1=>array('/tag/april+1','linked-day'),
);
include 'calendar.php';
echo generate_calendar(2009, 4, $days, 5, '/tag/april');
?>
to link day 1 on the calendar to website.com/tag/april+1
What I want, though, is for the "april" in the URL to update along with the calendar. So, I want to include $month somehow to display the current month. Does anyone know how to do this?
Thanks for any info.
The URL I'm trying to link to isn't site.com/page.php?month=April&year=09,
it's
site.com/tag/april+1
Are you saying I should just write in $S_GET['month'] in place of 'april'? Like:
<?php
$days = array(
1=>array('/tag/$_GET['month']+1','linked-day'),
);
include 'calendar.php';
echo generate_calendar(2009, 4, $days, 5, '/tag/april');
?>
If so, that's not working for me.