Reply to Re: Problem retrieving an object from an array and calling a method on the object

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация