Good day,
I’m trying to display current bids, in table format, in the main body of the front page without much luck. The problem is that no data is displayed even though there are bids, there are also no error messages displayed. Any help would be greatly appreciated.
<div id=“mainbox”>
<h3>Flight Departures Board</h3>
<table width=“100%” class=“tablesorter”>
<thead>
<tr bgcolor=“#336699”>
<th height=“25” width=“10%”><div align=“center”>Flight Number</div></th>
<th height=“25” width=“10%”><div align=“center”>Pilot ID</div></th>
<th height=“25” width=“30%”><div align=“center”>Aircraft Type</div></th>
<th height=“25” width=“10%”><div align=“center”>Tail No.</div></th>
<th height=“25” width=“15%”><div align=“center”>Depart Airport</th>
<th height=“25” width=“15%”><div align=“center”>Arrive Airport</div></th>
<th height=“25” width=“10%”><div align=“center”>Flight Time</div></th>
</tr>
</thead>
<tbody>
<?php
if(!$bids)
{
echo ‘No flights have currently been booked’;
return;
}
foreach($bids as $bid);
{
?>
<tr bgcolor=“#DFF4FF”>
<td height=“25” width=“10%” align=“center”><?php echo $bid->code . $bid->flightnum; ?></a> </td>
<?php
$params = $bid->pilotid;
$pilot = PilotData::GetPilotData($params);
$pname = $pilot->firstname;
$psurname = $pilot->lastname;
?>
<td height=“25” width=“10%” align=“center”><span><?php echo $pname; ?> <?php echo $psurname; ?></span></td>
<td height=“25” width=“30%” align=“center”><span><?php echo $bid->aircraft; ?></span></td>
<td height=“25” width=“10%” align=“center”><?php echo $bid->registration?></td>
<td height=“25” width=“15%” align=“center”><span><?php echo $bid->depicao; ?></span></td>
<td height=“25” width=“15%” align=“center”><span><?php echo $bid->arricao; ?></span></td>
<td height=“25” width=“10%” align=“center”><span><?php echo $bid->flighttime; ?> Hours</span></td>
</tr>
<?php
}
?>
</tbody>
</table>
<hr>
</div>
Many thanks
Mark