Forums

PHP

This topic is locked

Creating A Simple Calendar in PHP

Posted 09 Jul 2004 19:09:37
1
has voted
09 Jul 2004 19:09:37 Judy Wert posted:
I purchased the Creating A Simple Calendar tutorals, and have been getting parcing errors in the code. (even when I copy and paste it) I am new at php and can't figure out what is missing. This is the code.

# calculate number of rows
$totalCells = $firstDay + $daysInMonth;
if($totalCells < 36) {
$rowNumber = 5;
} else {
$rowNumber = 6;
}
$dayNumber = 1;
# Create Rows†† for($currentRow=1; $currentRow <= $rowNumber; $currentRow++) {
if($currentRow == 1) {

Edited by - on 13 Jul 2004 22:03:23

Reply to this topic