STARs Posted April 4, 2015 Report Share Posted April 4, 2015 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. Quote Link to comment Share on other sites More sharing options...
t_bergman Posted April 4, 2015 Report Share Posted April 4, 2015 STARS, are you on windows hosting too? Quote Link to comment Share on other sites More sharing options...
STARs Posted April 6, 2015 Author Report Share Posted April 6, 2015 STARS, are you on windows hosting too? Negative. Any solution for my issue please? Quote Link to comment Share on other sites More sharing options...
t_bergman Posted April 6, 2015 Report Share Posted April 6, 2015 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. Quote Link to comment Share on other sites More sharing options...
STARs Posted April 8, 2015 Author Report Share Posted April 8, 2015 Hi, Unfortuantely that did not help out i am already of 5.3.29 php. Regards Please assist this is causing big issue for us. thanks. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted April 9, 2015 Administrators Report Share Posted April 9, 2015 If I am following you correctly and you are at - /pireps/view/(pirepid) - I think the variable should be $pirep->pirepid not $report->pirepid 1 Quote Link to comment Share on other sites More sharing options...
STARs Posted April 10, 2015 Author Report Share Posted April 10, 2015 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!!! Quote Link to comment Share on other sites More sharing options...
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.