OA01 Posted November 16, 2013 Report 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
Members Vangelis Posted November 16, 2013 Members Report 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
OA01 Posted November 17, 2013 Author Report 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
Members Vangelis Posted November 17, 2013 Members Report 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
OA01 Posted November 18, 2013 Author Report Posted November 18, 2013 lol, Thanks again Vangelis, thats exactly what I was looking for Quote
Members Vangelis Posted November 18, 2013 Members Report Posted November 18, 2013 Glad that i helped you 1 Quote
danny124 Posted January 20, 2015 Report 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
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.