Battery Powered
02-05-2003, 07:53 AM
Hi
At the moment im using this to print part of an array
print (" $values[0] ");
which works fine, but the value in the '[ ]' i want to be dynamic,
what im trying to do is this
print (" $values[ $number * 7 + 1 ] ");
i want the value in the '[ ]' to be a variable multiplied by 7 and then having one added to it
ive tried and tried and cannot get it to work,
any ideas?
Thanks,
James
At the moment im using this to print part of an array
print (" $values[0] ");
which works fine, but the value in the '[ ]' i want to be dynamic,
what im trying to do is this
print (" $values[ $number * 7 + 1 ] ");
i want the value in the '[ ]' to be a variable multiplied by 7 and then having one added to it
ive tried and tried and cannot get it to work,
any ideas?
Thanks,
James