Jump to content

Typ table's (FleetTable)


Artjom

Recommended Posts

Hello all, I have a problem, I can not divide one table into 2 different output table's.

FleetTable show only a one table with information, but I need a conclusion in the two tables, first table of Boeing 737 and the second table  Airbus A319

how can I create this?  please help..

First Table is (list of all Boeing aircraft's)

Boeing B737-300

EI-CHH, total flight time 00:12:50.

Located at the airport Cologne Bonn (EDDK).

EI-BBG, total flight time 00:22:40. 

Located at the airport Cologne Bonn (EDDK).

Second Table is (list of all Airbus aircraft's)

Airbus A319-100

VP-BBG, total flight time 01:20:15.

Located at the airport Munich (EDDM).

VP-BNM, total flight time 03:22:10. 

Located at the airport Cologne (EDDK).

This isn't a good code...

<?php foreach ($fleet as $aircraft) 
{
?>
<?php $airbus = explode("EI", $aircraft->registration); echo $airbus[0];?>,  total flight time <?php echo $aircraft->totaltime; ?>.<br>  Located at the airport<?php
$params = (array('a.registration'=>$aircraft->registration, 'p.accepted'=>PIREP_ACCEPTED));

$pirep = PIREPData::findPIREPS($params);
$current_location = $pirep[0]->arricao;
$current_location2 = $pirep[0]->arrname;
       {
           echo ''.$current_location2.' ('.$current_location.')';
       }
?>.<br><br>
<?php } ?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...