True Avia , your code solved most issues, the rest of the issues are my doing while moving hosts etc π
Strider thanks, yes it is populated , but you're right its probably a airline code/pilot id related thing , I probably messed that up in the past while dealing with the php version and hosting changes.
Thanks for asking Guys...so just for brainstorming...have a look at the following, see what gets mailed when a pirep is filed...issue highlighted in bold
A PIREP has been submitted by 0000 ( ) ...etc
I'm trying to look at the pirepdata and pilotdata classes for that function return to analyze why it should return that π
Its easy enough to start from scratch , but not giving up yet..I dont delete pilots..so its like 35000 pireps and over 100 thousand hours across 10 years.