Salem Posted June 3, 2018 Report Posted June 3, 2018 Good day, I have a problem for send a bonus for all pirep with a landing rate under -150 on db PIREP Yet the call is correct is I get this message "Fatal error: Call to undefined method PIREPData::getPirepData()" If anyone would have an idea it would be cool. Here is the code below: $pilotbonus = "500"; $pirepinfo = PIREPData::getPirepData($pirep_details->pirepid); if($pirep_details->landingrate <= -1 AND $pirep_details->landingrate >= -150) { $bonus = $pilotbonus +$pirepinfo->bonus; $fields = array ( 'bonus' => $bonus, ); PIREPData::getReports($pirepinfo->pirepid, $fields); } Thank's 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.