Jump to content

Recommended Posts

Posted

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

  • 4 years later...
Posted (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 by eliezerazevedo

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