prepare($sql); $sth->execute([ ":company_id" => $company_id ]); db_check($sth, $answer); $output = $sth->fetch(PDO::FETCH_ASSOC); $answer["output"] = $output; $answer["success"] = 1; exit(json_encode($answer)); ?>