Jump to content

Logbook


Royzzzz

Recommended Posts

Hi,

I wanna make an logbook for the profile page, but I get an error: Parse error: syntax error, unexpected '(' on line 225

This is the code :

<?php

$count = 6;

$pireps = PIREPData::getRecentReportsByCount($userinfo->pilotid) ($count); <--LINE 225

?>

<?php

if(count($pireps) > 0)

{

foreach ($pireps as $pirep)

{

$pilotinfo = PilotData::getPilotData($pirep->pilotid);

$pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid);

echo '<tr><td><div class="label label-sm label-primary"><i class="fa fa-plane"></i></div> '.$pirep->firstname.' '.$pilotinfo->lastname.' completed '.$pirep->code.$pirep->flightnum.' from '.$pirep->depicao.' to '.$pirep->arricao.' <br></td></tr>';

}

}

else

{

echo '<tr><td>There are no recent flights!</td></tr>';

}

?>

Thanks in advance!

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