![]() |
|
|
|
|
|
|
2
21st November 10:24
External User
Posts: 1
|
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? -- Postgresql & php tutorials http://www.designmagick.com/ |
|
|
4
21st November 10:24
External User
Posts: 1
|
<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. -- Postgresql & php tutorials http://www.designmagick.com/ |
|
|
7
21st November 10:24
External User
Posts: 1
|
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/ |
|
|
9
21st November 10:26
External User
Posts: 1
|
If __construct doesn't exist then it falls back to the php4 way - makes
it backwards compatible ![]() -- Postgresql & php tutorials http://www.designmagick.com/ |
|
| Some other forums that might be of your interest : Php 5 forum, Apache forum, Iis forum, Functions forum, Classes forum, Librarys forum, Bugs forum, Postgres forum, Mysql forum, Paradox forum, Ms sql forum, Configurations forum, Php.ini forum, Problems forum, Scripting forum, Css forum, General forums, Off-topic talk, Links, Extra forums, Php |