STARs Posted April 4, 2015 Report 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
t_bergman Posted April 4, 2015 Report Posted April 4, 2015 STARS, are you on windows hosting too? Quote
STARs Posted April 6, 2015 Author Report Posted April 6, 2015 On 4/4/2015 at 11:19 PM, t_bergman said: STARS, are you on windows hosting too? Negative. Any solution for my issue please? Quote
t_bergman Posted April 6, 2015 Report Posted April 6, 2015 On 4/6/2015 at 11:43 AM, STARs said: 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
STARs Posted April 8, 2015 Author Report 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
Administrators simpilot Posted April 9, 2015 Administrators Report 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
STARs Posted April 10, 2015 Author Report Posted April 10, 2015 On 4/9/2015 at 12:20 AM, simpilot said: 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
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.