Jump to content

Recommended Posts

Posted

Hello,

I am having the following issue when any pilot tries to add comment to his/her pirep. I am displaying the following code on the view pirep report page (where all data of the pirep is displayed):




<?php
if($comments)


if(Auth::LoggedIn() && Auth::$userinfo->pilotid == $report->pilotid)
{
echo '
';

foreach($comments as $comment)
{
?>
- <?php echo $comment->comment?> <i>(<?php echo $comment->firstname . ' ' .$comment->lastname?>)</i><br>
<?php
}

echo '';
}
?> 

<a href="<?php echo url('/pireps/addcomment?id='.$report->pirepid);?>">Add Comment</a><br />

</td>
</tr>



It does not detect the pirep id when clicked on add comment. Is there anything that I am doing wrong?

Waiting for assistance,

Thanks.

Posted

Negative.

Any solution for my issue please? :)

I had the same issue, it was a php configuration but I believe isolated to windows hosting. You can always try php v5.3.29 which solved the problem for me. Its a long shot as you're on linux.

  • Administrators
Posted

If I am following you correctly and you are at - /pireps/view/(pirepid) - I think the variable should be

$pirep->pirepid

not

$report->pirepid

  • Like 1
Posted

If I am following you correctly and you are at - /pireps/view/(pirepid) - I think the variable should be

$pirep->pirepid

not

$report->pirepid

That worked liked a charm! :) Thanks SimPilot!!! :D

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