From: Lauren M. <in...@ca...> - 2000-10-27 15:26:32
|
I believe the attribute list is an associative array, so you'll need to do something like: $tmp = $curevent->attrlist; echo $attrlist->newfield; Lauren. absolut maniac wrote: > i'm using php4 with mcal > well, I tried to add an attribute to an event by doing the following: > mcal_event_add_attribute ($mcal,"newfield","value"); > i also set some other fields as i usually would and stored it. > the problem came when trying to get the data back. > here's what i do: > $curevent = mcal_fetch_event ($mcal, $id); > echo $curevent->newfield; > at that point, nothing gets printed out. > if anyone could tell me what i'm doing wrong and if there's anything to do, > like initialize the event objects after adding the attribute or something. > > thanx. > > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.com. > > _______________________________________________ > Libmcal-users mailing list > Lib...@li... > http://lists.sourceforge.net/mailman/listinfo/libmcal-users |