Now I am curious. Can an if statement be included so say if flghttype = C echo Cargo?
Right now the way I have it, it simply shows the results as C, P, or H.
I would like to add another code like the one above to show how much it pays for that flight but have yet to get that one to work. Maybe I can ix the code from the schedules are in the admin panel?
So in all, the schedule results page would show on the left like
Ok so I tweaked it a tad and now I got it to echo charter as well, issue is, I did away with the elseif and went with another else echo and now all non passenger flights show up as Charter. I had figured that was going to be the result but tried it anyhow.
You know what… I just noticed, it is showing ticket price for passengers or cargo charge. Ijust saw one flight valued at $2.95 lol I wonder how many pilots would turn down that job. And at $2.95 that same flight actually pays the pilot like $1100 I believe it was.
That works if we wish to show how much we are charging the passenger or cargo for the flight. I need to figure out how to make it show me how much cash the pilot will be paid for said flight. Not sure if we can do that or not with the pilot pay by the hour or per flight. I am sure there is a way though. The trick is to figure it out.
I un-marked this one as solved. It is kind of solved. I have played with code until I was blue in the face and I can not get this to pull the pilot pay for a flight one. Using the code suggested above, it does pull either the ticket price or cargo per unit charge and echos it, but it will not show the actual pilot pay.