|
Keep a counter of how many lines you've printed and every time you print a line check the mod result of the counter.
if ($counter%5=0) {
echo "This is the line to print every 5th line."
}
Basically if the reminder of the counter divided by 5 is 0 you want to print that line. I typed it wrong before and this probably wrong, too, but that's the general concept anyways.
[This message has been edited by FATPad (edited 01-13-2002).]
|