rajug wrote:See here the simple two loops in php:
$str = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
for($i = 0; $i < strlen($str); $i++){
for($j = 0; $j < strlen($str); $j++){
print $i . ':' . $j . '=>' .$str[$i] . $str[$j] . '<br>';
}
}
Does this help you?
wow, this is so help me... I thing my problem is so difficult yet. But, after I seen your replay I am so surprise. Thank you so much, It work succesfuly !
Actually I want to build PHP script for this logical:
I want to create User ID with value "A06 00001";
-- The first unit ID is alphabet A, second unit ID is year registered, and the last unit ID is autoincreament database ID.
-- For Every 10.000 user database ID, so the first unit ID must be move to AA, for the example:
A06 00001;
AA06 10000;
AB06 20000;
.
.
and the last for looping back to the first is: AZ06 260000
Very thank you so much! You are very friendly...