Attached is the code that displays a 12 month calendar 3 columns by 4 rows. To see the calendar go to my site:
http://www.solidsnstripes.com/eventcalendardisplay.php
The calendar displays all of the dates correctly. However, I want to display a hyperlink for those days where there are one or more events (i.e., records) found in the database for the specific day. Thus, those days where there are no records found, the days would not have an href associated with them.
The EVENTCAL table structure is as follows:
ID int(11) PRI auto_increment
STATE text YES
CITY text YES
ADDRESS text YES
ZIP text YES
TELEPHONE text YES
DESCRIPTION text YES
ACCT text YES
EVENTSTARTDATE date YES
EVENTDAYSDURATION text YES
There are two rows in the table that have dates 2004-07-29 and 2004-07-30 respectively.
Lines 79 through 87, of my code attachment, is supposed to print the hyperlink but I'm having trouble knowing why the count is not functioning.
The original calendar code appears as a code snippet found on the PHPbuilder site at the following link:
http://www.phpbuilder.com/snippet/detail.php?type=snippet&id=48
I've modified it to create hyperlinks for each day then modified it again to only create hyperlinks for a day where there are records found. I'd appreciate anyone taking a look to find the cause.
Thanks.