NYCPHP Meetup

NYPHP.org

[nycphp-talk] Trouble with Array of Objects

Malcolm, Gary gmalcolm at professionalcredit.com
Tue May 27 17:30:29 EDT 2003


now im curious...

have you collected all the mysql results and  print_r'ed the rows?

> -----Original Message-----
> From: Christopher R. Merlo [mailto:cmerlo at turing.matcmp.ncc.edu]
> Sent: Tuesday, 27 May, 2003 2:17 PM
> To: NYPHP Talk
> Subject: Re: [nycphp-talk] Trouble with Array of Objects
> 
> 
> On 2003-05-27 17:10 -0400, Chris Snyder <chris at psydeshow.org> wrote:
> 
> > Scratching head... have you tried $meetings[] = new Meeting 
> ( etc.); ??
> > Not that it should matter, of course.
> 
> Oddly, that changes the "[4]" below:
> 
> > >Array ( [4] => meeting Object ( [day] => Friday [start] => 08:00:00
> > >[end] => 10:50:00 [dept] => CMP [course] => 218 [building] 
> => B [room]
> > >=> 113 ) ) 
> 
> to a "[0]", but it's still the same object stored (the last one of the
> five).
> 
> > Also, are you PHP 4.3.1? (And not 4.3.2RC4?)
> 
> I'm actually (gasp!) at 4.1.1.  I was planning to update the box (OS,
> PHP, etc.) before summer session started, but alas, I was too lazy.  I
> wonder if the old version of PHP makes a difference.
> 
> -- 
> cmerlo at turing.matcmp.ncc.edu        
> http://turing.matcmp.ncc.edu/~cmerlo
> 
> We're sorry, but the number you have dialed is imaginary.  Please
> rotate your phone ninety degrees and try again.  Thank you.
> 
> 
> --- Unsubscribe at http://nyphp.org/list/ ---
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20030527/81eeea02/attachment.html>


More information about the talk mailing list