No this isn't the whole code, just a part of it.
<?php
$i=0;
do { ?>
> <a href="javascript:popStrict('flash/displayimage.php?album=lastup&cat=0&pos=<?php echo $i; ?>');"><?php echo substr($row_galleryRS['title'], 0,22); ?> </a>(<?php echo substr($row_galleryRS['owner_name'], 0, 10); ?>) <br />
<?php
$i++;
} while ($row_galleryRS = mysql_fetch_assoc($galleryRS) && $i<3); ?>
This is sorta what I'm looking for. Notice how I put the echo in the part of the code I wanted. Yet if you go to the site, the $i does not change during the loop with your code or any other code I've tried. The link does not change (it stays http://www.kehbop.com/flash/displayimage.php?album=lastup&cat=0&pos=1 with '1' being the $i)
www.kehbop.com (loop we are talking about is under the Flash Portal section of the homepage)