
June 5th, 2001, 09:09 AM
|
 |
Banned (not really)
|
|
Join Date: Dec 1999
Location: Brussels, Belgium
|
|
|
Why do you have your function declaration inside of a conditional? Just define it and call it if you need it.
Where is $function defined? If it's not, then your function is never defined...
Also, if you're going to use outside variables in your function, then you have to make them global.
function whatever()
{
global $this;
global $that;
...
}
etc... May be other things wrong, too, that's the first I noticed. i doubt you are even making a connection, you should check for that first.
---John Holmes...
__________________
-- Cigars, whiskey and wild, wild women. --
|