|
x is not defined within the scope of that function so it is not available within that function. If you want to access x you either have to declare it as a global by typing "global $x;" at the top of your function, or you need to get the variable from another of your functions (or as a parameter in the contents function); there's any number of ways of doing it. Maybe there's some code I'm missing here, but that's what I see.
__________________
Mark Hudson
Ritetek Design
Please login or register to view this content. Registration is FREE
|