I have an issue where the if statement doesn't want to work, I'm not sure what is wrong. Regardless, it will always display the if condition. Initially, I have used a provisional code for the combo box which I'll edit later from the internet, to check if the if/else statement works, but it doesn't, and I can't see any reason why. Any clues? I'll be also adding a foreach statement into the select box, like this...
<select>
<?php
foreach($bids as $bid)
{
?>
<option value="tbc">Some PHP code here</option>
<?php
}
?>
</select>
This is the current full code I have:
<div class="frontpage_sidebar_header">Quick Flight Dispatch</div>
<div class="sidebox_content">
<?php
if(!$bids)
{
?>
<table width="100%" style="padding: 5px; text-align: center;">
<tr>
<td>You haven't booked any flights</td>
</tr>
</table>
<?php
}
else
{
?>
<select>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
<?php
}
?>
</div>