Search found 3 matches

by olly
Fri Nov 11, 2005 8:53 am
Forum: PHP - Code
Topic: calling a method from inside a function
Replies: 6
Views: 437

Oh right...so the global object gets overridden by a ficticious local one, thus stopping it being accessed? :?
by olly
Fri Nov 11, 2005 7:29 am
Forum: PHP - Code
Topic: calling a method from inside a function
Replies: 6
Views: 437

Fixed tags.

I kinda assumed that variables, objects etc. declared in the main part of the script (ie. outside of any functions) were automatically global, but on reading up I find I was incorrect. D'oh!

Thanks very much Jenk! :)
by olly
Fri Nov 11, 2005 4:38 am
Forum: PHP - Code
Topic: calling a method from inside a function
Replies: 6
Views: 437

calling a method from inside a function

Apologies in advance if this is a daft question. I am trying to put all my database handling routines into a class (mysqldatabase). So far so good. I want to call one of the methods from this call one of the methods in this class from inside the function "selectTable()", but it responds wi...