eliezerazevedo Posted August 27, 2016 Report Posted August 27, 2016 (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 September 2, 2016 by eliezerazevedo Quote
web541 Posted August 28, 2016 Report Posted August 28, 2016 <?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>'; } ?> Quote
eliezerazevedo Posted August 29, 2016 Author Report Posted August 29, 2016 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! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.