OA01 Posted November 16, 2013 Report Share Posted November 16, 2013 Can any of you coding Gurus give me the code to display a pilots pay for each flight? IE: A pilots pay is 20 per hour and he flies for 2 hours it displays 40. Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted November 16, 2013 Members Report Share Posted November 16, 2013 If you want only to display the final amount then this is your code <?php echo FinanceData::FormatMoney($pirep->pilotpay);?> Quote Link to comment Share on other sites More sharing options...
OA01 Posted November 17, 2013 Author Report Share Posted November 17, 2013 Thanks Vangelis but I already have the code <li><strong>Pilot Pay: </strong>€ <?php echo $pirep->pilotpay;?> p/hr</li> All that displays is the pilots hourly rate. What I'm after is how much pay the pilot gets for a particular flight. Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted November 17, 2013 Members Report Share Posted November 17, 2013 Try this, that one this time i have tried it <?php echo FinanceData::FormatMoney($pirep->pilotpay * $pirep->flighttime);?> Sorry my bad Quote Link to comment Share on other sites More sharing options...
OA01 Posted November 18, 2013 Author Report Share Posted November 18, 2013 lol, Thanks again Vangelis, thats exactly what I was looking for Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted November 18, 2013 Members Report Share Posted November 18, 2013 Glad that i helped you 1 Quote Link to comment Share on other sites More sharing options...
danny124 Posted January 20, 2015 Report Share Posted January 20, 2015 I am new to coding so sorry for opening a can of worms. What file and line number am i looking for. Thanks 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.