Jump to content

Recommended Posts

Posted (edited)

Hi , I'm trying to hide the randomflights if the pilot has one or more reserved flights. Any idea to do?

if(count(SchedulesData::GetBids(Auth::PilotID())) > 0)

{

echo 'You have flights to be performed.';

}

else

{

Edited by eliezerazevedo
Posted
<?php
if(SchedulesData::getBids(Auth::$userinfo->pilotid) > 0) {
echo 'You have flights that need to be perfomed!';
} else {
echo '<a href="'.SITE_URL.'/index.php/randomflights">Book Random Flights</a>';
}
?>

Posted

I managed to solve the problem :)

Code used:

<?php

if(count(SchedulesData::GetBids(Auth::PilotID())) > 0)

{

echo '<div id="error">Você tem voos para serem realizados!</div>';

return;

}

?>

Thank you for your help!

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