top.window.location = '../../index.php'"; exit; } require_once __DIR__ . "/" . "../../includes/include_basics_only.php"; require_once __DIR__ . "/" . "../../includes/classes/ConnectPDO.php"; use includes\classes\ConnectPDO; $conn = ConnectPDO::getInstance(); $post = $_POST; $costcenters = []; $client = (isset($post['client']) && !empty($post['client']) ? noHtml($post['client']) : null); $costcenters = getCostCenters($conn, null, $client); $data = $costcenters; echo json_encode($data);