Hi Tom,
First problem, is that the variable $incident_array isn't declared
beforehand outside the loop.
Do:
var $incident_array = array();
before the loop. That way PHP doesn't assume that it's scoping is only for
within the loop, since that's where the variable is created, not having
been p
Whoops, my mistake. I read your code completely wrong. Ignore my
comments. You are calling the first variable but I didn't expect it to
be called like that. I expected that the array would be appended to by
calling it like this:
$incident_array[]=$value;
Nevermind, sorry 'bout that.
Paul
Well, first of all, to get the first value of the array you should call
it as $incidnet_array[0]. Now doing that *might* fix your problem if you
were only recieving one value for the array. So if you were getting
output inside the array, how many outputs were you getting? One or two
or more?
~Pau
Hi folks.
I have an interesting problem with regards to variable scope in loops.
Now I understand how this operates in functions but its the first time I
have seen variable scope in a loop.
Below is a code snippet of what I have:
// execute SQL query
OCIExecute($sql_statement) or die("Couldn't