0

我有一个数组数组,我需要选择日期范围内的所有记录(数组)。当我在 PHP 中 print_r 时,它看起来像这样:

 Array
    (
        [0] => Array
            (
                [FlightID] => 1
                [[Flight from]] => Kraków
                [[Flight to]] => London
                [[Airport from name]] => Balice
                [[Airport to name]] => London Heathrow Airport
                [[Date]] => 2013-06-06
                [[Price for kid]] => 200
                [[Prcie for adult]] => 500
                [[Total seats]] => 100
                [[Free seats]] => 100
                [[Flight time]] => 12:00:00
            )

        [1] => Array
            (
                [FlightID] => 2
                [[Flight from]] => London
                [[Flight to]] => Kraków
                [[Airport from name]] => London Heathrow Airport
                [[Airport to name]] => Balice
                [[Date]] => 2013-06-14
                [[Price for kid]] => 200
                [[Prcie for adult]] => 500
                [[Total seats]] => 100
                [[Free seats]] => 100
                [[Flight time]] => 14:00:00
            )

    )

等等。例如,我需要选择介于 2013-06-03 和 2013-06-08 之间的数组。它会是什么样子?

SELECT * FROM flights WHERE Date Between '2013-06-03' and '2013-06-08'

不工作,但我想这是由于二维数组。

4

0 回答 0