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