Declare it before the loop. Judging by the error you're doing that already (even if you're not showing it) but you're re-declaring it inside the loop.
↧