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