well, I had a feeling that I would be bitten by this one when I tried to reuse the function:
- I have functions that declare variables to be GLOBAL, e.g.,
function ext_size_display()
{
global $init_ext_size_results;
foreach ($init_ext_size_results as $unique_ext_size_results)
{
echo "$unique_ext_size_results";
}
}
Each one is a result return from either Oracle or MySQL, and they wouldn't display on my original query page without being declared global.
However, now I need to use these functions in a loop (a report returning multiple records) and I'm getting fatal errors because the variable is already declared.
- Is there a way to overwrite/erase these global variables at the beginning of the loop, and is this advisable? Go back to the drawing board?
thanks for your time once again. knelson