Hey guys,
I am trying to design some code for the welcome back section on the Pacific skin so that it comes up with a pilot's booked flight if he has one.
Currently I have got this far:
<i STYLE="float:left;">Welcome back, <a href="<?php echo url('profile'); ?>" ><?php echo Auth::$userinfo->firstname . " " . Auth::$userinfo->lastname ;?></a>!
<?php
if($bid)
{
echo 'You have an upcoming flight: <?php echo $bid->code . $bid->flightnum; ?>';
}
elseif(!$bid)
{
echo 'You have no upcoming flights.';
}
?></i>
The problem is, the code is always saying 'You have no upcoming flights' even if there is one booked for that pilot.
Anyone know what I need to do to get the bidded flight number to appear in place of the 'You have no upcoming flights' when there is one?
Thanks!