note
mkmcconn
[chriso],<br />
I believe that it's simply a matter of your variables being surrounded by single quotes.
<code># this will expand the variables
print "$labels[$counter]";
#this will print the literal variables, no expansion:
print '$labels[$counter]';
</code><br />
[mkmcconn]
124933
124933