Beispiel #1
0
            <br>
              <table>
              <tr>
                <th>Company</th>
                <th>Brand</th>
                <th>Price</th>
                <th>Quantity</th>
                <th>Rank</th>
              </tr>
            <?php 
require_once 'data.php';
$data = new reviewsFormation();
$rentals = $data->getRentals($airportID);
if (count($rentals) != 0) {
    foreach ($rentals as $blog) {
        $temp = $data->getRentalCompany($blog["companyid"]);
        $companyName = $temp[0];
        echo "<tr>";
        echo "<td>" . $companyName["Name"] . "</td>";
        echo "<td>" . $blog["carbrand"] . "</td>";
        echo "<td>" . $blog["price"] . "</td>";
        echo "<td>" . $blog["quantity"] . "</td>";
        echo "<td>" . $blog["rank"] . "</td>";
        echo "</tr>";
    }
}
?>
            </table>
          </section>
        </div>
      </div>