Jump to content

Welcome Back Message with Pacific Skin


TB1

Recommended Posts

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!

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...