crazypilot Posted March 5, 2012 Report Posted March 5, 2012 Hi, I´m trying hide the RealScheduleLite if the pilot have one or more booked flights, here de code line 73: if(SchedulesData::GetBids($pilotid)) => '1') { echo '<p>You have booked flights.</p>'; } else { but thats the error: Parse error: syntax error, unexpected T_DOUBLE_ARROW in xxxxxx/realschedulelite_index.tpl on line 73 sorry about the bad english thanks Quote
crazypilot Posted March 5, 2012 Author Report Posted March 5, 2012 i have solved the problem, sorry. Quote
eliezerazevedo Posted August 27, 2016 Report Posted August 27, 2016 (edited) How you solved the problem ? Edited August 27, 2016 by eliezerazevedo Quote
eliezerazevedo Posted August 29, 2016 Report Posted August 29, 2016 (edited) 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; } ?> Edited August 29, 2016 by eliezerazevedo 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.