>> >> The $players object is created before the loop: >> $players = new Players($lid); > > <snip> > > Which means the code is only executed once since it's in the > constructor. It's not changing per loop because you're not calling the > code. > > Maybe setting $this->max should be done in > > fetchSelectData > > since that's what is causing/creating your loop. Thanks Chris, I will give that a shot. Just to confirm, this script works just fine in php4, so do we put that down to pure luck, or has there been a change in php5 that will be causing it? > > -- > Postgresql & php tutorials > http://www.designmagick.com/ > > -- > This email has been scanned for viruses and dangerous content by > Sydney Technology Solutions MailMaster Email Protection Services. > > For more information please visit http://www.sydneytech.com.au > :Scanned by MailMaster1: > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php