Re: PHP4 vs PHP5 classes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



jeff.mills@xxxxxxxxxx wrote:
>>> 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?

No idea why it works in php4 - if you're only calling the "Players"
method once (or through the constructor) it should have behaved the same
in php4.

-- 
Postgresql & php tutorials
http://www.designmagick.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux