$i=0;
while { // popüler programlar döngüsü
$i++;
echo "<img src='pop".$i.".gif'>";
.........................
}