//Using Pheal $pheal_acc = new Pheal($apikey, $vcode, "char"); //set scope $response = $pheal_acc->CharacterSheet(array("characterID" => $idcharacter)); //add parameters foreach ($response->skills as $skills2) { if ($skills2->typeID == 16622) { $level_acc = $skills2->level; } } /////////////////////////////////////// //update All faction and corp standings ///////////////////////////////////////// $pheal3 = new Pheal($apikey, $vcode, "char"); //var_dump($apikey); var_dump($vcode); var_dump($idcharacter); $result3 = $pheal->Standings(array("characterID" => $idcharacter)); //add parameters //$corpStandingsArray = array(); $corpStandingsArray = array(); foreach ($result3->characterNPCStandings->NPCCorporations as $corpStandings) { //$standing = $corpStandings->standing; //$corpStandingsArray[$standing] = $corpStandings->fromID; $corpStandingsArray[] = "(NULL," . $idcharacter . "," . $corpStandings->fromID . "," . $corpStandings->standing . ")"; } if (!empty($corpStandingsArray)) { $update_standings_corp = mysqli_query($con, "INSERT IGNORE INTO `trader`.`standings_corporation` \n (`idstandings_corporation`, \n `characters_eve_idcharacters`, \n `corporation_eve_idcorporation`, \n `value`) \n VALUES" . implode(', ', $corpStandingsArray)) or die(mysqli_error($con)); } else { $newStandingsCorp = 0; $update_standings_corp = False; } $factionStandingsArray = array();