Public feed #376974

Mine

public php v1 · immutable
Raw Edit
·published 2007-03-01 11:18 UTC
rendered paste body
<?$num = 10; //this how many times you want something done$i=0; //this is the starting number.echo "<div id=\"column\">"; //this only happend oncewhile($i<$num) { //this means that for everytime $i(0) is less than $num(10) the following will happenecho "<p><img src=\"images/levelbox/$i.gif\" width=\"26\" height=\"25\" />$i</p>"; //what will happen$i++; //keep this, otherwise $i will just stay at zero, this makes it increase by one.} //finish the repeatingecho "</div>"; //this only happens once.?>