Jump to content

Issue with adding comments on PIREP by pilots


STARs

Recommended Posts

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.

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