> Maybe setting $this->max should be done in
>
> fetchSelectData
>
> since that's what is causing/creating your loop.
>
Thanks Chris, I copied the code into the fetchSelectData function and it
seems to be working fine now!
Just need to test removing the code from the constructor to make sure its
>>
>> The $players object is created before the loop:
>> $players = new Players($lid);
>
>
>
> 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
>
> fetchSele
>
> Since the Players method is a constructor, it's more about how you set
> the object(s) up.
>
> What does the loop look like before you create a new object?
>
Well see here is where it gets messy! This is not my code - I've ported a
phpnuke module over to dragonflycms.
The $players object is
I have the following code in part of a loop:
$max = $players->max();
Important parts of players class:
class Players extends dynamicTable {
var $setup;
var $lid;
var $size;
var $max;
var $data;
var $data_result;
var $data_index;
var $player_stats_result;
var $player_stat
>
> thats a decent bit of code to pick through, jeff. glancing at index.txt,
> the code looks pretty straight forward, and by that i mean that it doesnt
> look like theres anything that shouldnt work in php5.
>
> if i were to guess, i would suspect an environmental issue. you should
> ensure tha
I have a module originally written for PHP-Nuke that I have ported to
CPG-Nuke/DragonFlyCMS.
In PHP4, the page I'm displaying works fine.
In PHP5, it doesn't.
The following link is a screenshot of the page using PHP4:
http://nukeleaguedf.winsto.net/working-php4.jpg
And a screenshot from PHP5:
h
6 matches
Mail list logo