Now there is a system, need to enter the bulk of the real estate information.
This is roughly the logic:
For example, the building number for the A1 of the building, the building has 20 floors, 15 rooms per floor, then the database into a batch of 20*15=300 rooms.
The system will automatically give the room number, 101 is 1 floor 01 room, 102 is 1 floor 02 room .... And so on
So here's the problem!
How can I let the system know that the room on the 1 floor is only 115 to end, then 2 floor is 201-215 rooms, 3 floor is 301-315 room. So until 2015, all the rooms have been entered.
Please give us a thought ~ ~ I suddenly shorted out
Reply content:
Now there is a system, need to enter the bulk of the real estate information.
This is roughly the logic:
For example, the building number for the A1 of the building, the building has 20 floors, 15 rooms per floor, then the database into a batch of 20*15=300 rooms.
The system will automatically give the room number, 101 is 1 floor 01 room, 102 is 1 floor 02 room .... And so on
So here's the problem!
How can I let the system know that the room on the 1 floor is only 115 to end, then 2 floor is 201-215 rooms, 3 floor is 301-315 room. So until 2015, all the rooms have been entered.
Please give us a thought ~ ~ I suddenly shorted out
Weak and weak to say that the cycle is not?
for($i=1;$i<21;$i++){ for($j=1;$j<16;$j++){ printf("%d%'.02d\n", $i,$j); } echo '
'; }