PDA

View Full Version : Function Problem


Knoman
09 Jan 2002, 03:55
heh, I'm stumped. I cant seen to get this function to work right.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



if i were to pull it out of the function and define $type, it then works.

Mark Hensler
09 Jan 2002, 07:18
You have to define $stat as global in your function,


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

or use the return value to assign it to a var.


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------