Hey Masem... I tried this out... Can you look at this and see where I went wrong??
$id = 0; while ($id < 50) { print "Position ID: $positionid<br />\n"; my $positionid = sprintf( "REG-RC-%04d", $id++ ); }
This is what it printed:
Position ID: REG-RC-0000
Position ID: REG-RC-0000
Position ID: REG-RC-0000
Position ID: REG-RC-0000
Position ID: REG-RC-0000
.....
Did that 50 times...
Any Suggestions??
Billy S.
In reply to Re: Re: Unique ID Generator
by LostS
in thread Unique ID Generator
by LostS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |