Don't write directly to the database. You'll lose any data integrity, and you'll lose things in updates (like in the betas, a ton of code has changed in the pirep submission process). And all that financial code is changing/changed
You need to use the ACARSData::filePIREP function. Read through here:
http://forum.phpvms....html?category=6
Looks through this code:
https://github.com/n...sacars.php#L386
And look how each variable is formatted so then it's submitted