Jump to content
Sign in to follow this  
Salem

Fatal error

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

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×