Jump to content

Fatal error


Salem

Recommended Posts

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

 

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