laravel5.1-The Bulk entry function of PHP real estate input System

Source: Internet
Author: User
Keywords php laravel5.1
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 '
'; }
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.