This module is going to show your pilot ranks and awards on phpVMS. It was developed by php-mods and it is registered under Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
How to Install?
Copy and upload the files same as the structure as your phpvms files. If you want to link your website’s visitors/users to this module, use this:
Strict Standards: Non-static method CareerData::getgenaward() should not be called statically, assuming $this from incompatible context in /home/pilotomeraslan/public_html/a/core/modules/Career/Career.php on line 13
Strict Standards: Non-static method CareerData::getranks() should not be called statically, assuming $this from incompatible context in /home/pilotomeraslan/public_html/a/core/modules/Career/Career.php on line 14
Strict Standards: Non-static method CareerData::getaircrafts() should not be called statically, assuming $this from incompatible context in /home/pilotomeraslan/public_html/a/core/templates/career.php on line 31
E190
public function getgenaward() {
$sql = "SELECT * FROM " . TABLE_PREFIX . "awards";
return DB::get_results($sql);
}
public function getranks() {
$sql = "SELECT * FROM " . TABLE_PREFIX . "ranks ORDER BY minhours";
return DB::get_results($sql);
}
public function getaircrafts($rankid) {
$sql= "SELECT distinct icao FROM " . TABLE_PREFIX . "aircraft WHERE minrank=" . $rankid;
return DB::get_results($sql);
}
And replace it with this
public static function getgenaward() {
$sql = "SELECT * FROM " . TABLE_PREFIX . "awards";
return DB::get_results($sql);
}
public static function getranks() {
$sql = "SELECT * FROM " . TABLE_PREFIX . "ranks ORDER BY minhours";
return DB::get_results($sql);
}
public static function getaircrafts($rankid) {
$sql= "SELECT distinct icao FROM " . TABLE_PREFIX . "aircraft WHERE minrank=" . $rankid;
return DB::get_results($sql);
}
I made an extra update into the file and merged the pull request. Thank you
Not a problem at all. My only headache was that I can not get the sorry message below the table headers. As of now it is sitting on top of the table headers. if I move the php, I get errors that I can not fix. I’m not the slickest with php but I do get lucky on that rare occasion. I really wish I could fix it the rest of the way.
Nice! I’ll run over to git and view the change. I am curious. I tried like mad man and all I got was errors. I was probably one little simple step away from correct.
**EDIT**
Looking at your code change, I was real close in my thinking. Where I was going wrong was not adding the 2nd } in the