Forums

Pass variable from Head to Body

erict 23 Jun, 2009
So while working on a more complex select I had gotten everything into place in my Chrono connection when I got slapped with:
Warning: in_array() [function.in-array]: Wrong datatype for second argument

What I'm doing is assembling an array in the Head and then trying to access it in the Body area. After some testing I came to find that the variable was getting cleared no matter what I did, even after making the variable global (ex: "global myVar;")

So my question is: How do I pass a PHP array $variable from the Head section to the Body?
This topic is locked and no more replies can be posted.