| 
 Posted by Jayman on 10/08/06 17:50 
I found out what the problem was.  I followed ZabMilenko's advice and 
printed out what was in the array and noticed it was blank.  I went 
back to the for loop earlier in the code and realized the loop is never 
entered because that line should have read: 
 
for ($i = 1; $i < $this->num_days_in_month + 1; $i++) 
 
and not: 
 
 for ($i = 1; $i < num_days_in_month + 1; $i++) 
 
Once that was corrected I had no problem using C's statement: 
 
$this->array_of_days[$index]->addEvent($event); 
 
Thank you for your help.
 
[Back to original message] 
 |