Jump to content

[SOLVED] EASY ONE:what am i doing wrong (auto-incrementing)


Lodius2000

Recommended Posts

I cant get this to auto-increment

dunno what I am doing wrong

<?php

$number = 01;
$file  = date('m').date('j').date('y').'_'.($number++).'sm.jpg';
while($number < 100){
print $file;
print "<br />\n";
}
?>

 

i want it to print

062908_01sm.jpg

062908_02sm.jpg

...

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.