in reply to Uninitalised Values - What does it mean?
You could stop the warning that you are seeing by moving your variable declaration inside your loop, and/or initializing the variables before you actually attempt to assign an unknown value to the variables (e.g. $record = '';).
Chris