Ask for PHP car rental algorithm, online and so on.

Source: Internet
Author: User

Paste First Instance website: URL

The number of people here changes, the following price details will be changed, the list of different seats in the car according to the number of different combinations, choose the lowest price scheme.
Related conditions, 1: Days, there are three kinds of three-way, each corresponding to the number of different seats of the car price is different.

Days represents the corresponding day, price is the current rate, seats is the number of seats
Now is the day, the number of days are three-way, according to the number of input different, the vehicle collocation, the number of people range 20-500.
The data in the picture here is I take out from the database, is a two-dimensional array, you can also refer to the instance Web site of the network order of the transport JSON view, this array is a two-dimensional array, PHP is sorted display, here the array of amount represents the current number of vehicles, the number of this type of vehicle, With this as the page display basis, the Minamount should be the secondary data.
The problem is this, there is not understand I add, online and so on ~ ~ ~

Reply content:

Paste First Instance website: URL

The number of people here changes, the following price details will be changed, the list of different seats in the car according to the number of different combinations, choose the lowest price scheme.
Related conditions, 1: Days, there are three kinds of three-way, each corresponding to the number of different seats of the car price is different.

Days represents the corresponding day, price is the current rate, seats is the number of seats
Now is the day, the number of days are three-way, according to the number of input different, the vehicle collocation, the number of people range 20-500.
The data in the picture here is I take out from the database, is a two-dimensional array, you can also refer to the instance Web site of the network order of the transport JSON view, this array is a two-dimensional array, PHP is sorted display, here the array of amount represents the current number of vehicles, the number of this type of vehicle, With this as the page display basis, the Minamount should be the secondary data.
The problem is this, there is not understand I add, online and so on ~ ~ ~

  • Related Article

    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.