prior to your select statements seems highly questionable: you don't define $I, you define $i (case is sensitive). Since $I is undefined, it's not being set.
Dr. Michael K. Neylon - mneylon-pm@masemware.com
||
"You've left the lens cap of your mind on again, Pinky" - The Brain