June 5th, 2001, 10:09 AM
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.
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.
-- Cigars, whiskey and wild, wild women. --