Welcome Guest, Not a member yet? Register   Sign In
Can't connect to multiple databases
#4

[eluser]Colin Williams[/eluser]
In class methods and functions in general, when you define a variable inside the method/function, it is only available inside the method/function. So, just because you defined the variable in the constructor doesn't mean it's available later in index(). With classes, you can share variables between methods by defining them as properties (like $this->eyebeam, $this->agilevoice).


Messages In This Thread
Can't connect to multiple databases - by El Forum - 05-06-2008, 02:30 PM
Can't connect to multiple databases - by El Forum - 05-06-2008, 02:56 PM
Can't connect to multiple databases - by El Forum - 08-10-2008, 07:58 PM
Can't connect to multiple databases - by El Forum - 08-10-2008, 09:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB