question

can somebody help me on this

i want to have a plane page but i cant seem to get it working.

here is how i want it to look like.

159504da3219ef91132e3cf0f52a6b5ab87e81cda49

i got this from Nabeel but i can’t get it to work or even get something on my screen

can somebody help me plz

$allaircraft = OperationsData::GetAllAircraft();

echo ‘<table>’;

foreach ($allaircraft as $aircraft)

{

  echo ‘<tr>’;

  echo ‘<td>’;

  // do each row

  echo ‘</td></tr>’;

}

echo ‘</table>’;

Add this to the page you are working on:

<?php $allaircraft = OperationsData::GetAllAircraft(); ?>
<?php
if(!$allaircraft)
{
echo '<p id="error">No aircraft have been added</p>';
return;
}
?>

<table border="1">
<thead>  
<?php //thead Is the top of the table ?>
<tr><td><b>ICAO</b></td><td><b>Type</b></td><td><b>Registration</b></td><td><b>Range</b></td><td><b>Weight</b></td><td><b>Cruise</b></td><td><b>Max Pax</b></td><td><b>Max Cargo</b></td></tr>
</thead>
<tbody>
<?php //below is all the info for each aircraft ?>
<?php foreach ($allaircraft as $aircraft) 
{
?>
<tr>
<td><?php echo $aircraft->icao; ?> </td>
<td><?php echo $aircraft->name; ?> </td>
<td><?php echo $aircraft->registration; ?></td>
<td><?php echo $aircraft->range; ?> </td>
<td><?php echo $aircraft->weight; ?></td>
<td><?php echo $aircraft->cruise; ?></td>
<td><?php echo $aircraft->maxpax; ?></td>
<td><?php echo $aircraft->maxcargo; ?></td>
</tr>
<?php } ?>
</tbody>
</table>

thanks this is what i was trying thank you verry mutch

Glad to see you got it working!

Mitch

HI

I want show a plane page , but I want show in bank page (New page ) , ( Like statistic : pilot , total hours … )

please give me php code for plane page !

Best Regard

Nice screen shot… looks familar, lol 

it schould look familiar its form your site :-[