escape($_REQUEST['search']) : '' ; $employee->read_sales_consultant_gm($search, $db); }else if($apiKey === '9027888775032177' ){ $gm_id = isset($_REQUEST['gm_id']) ? $db -> escape($_REQUEST['gm_id']) : '-1' ; $search = isset($_REQUEST['search']) ? $db -> escape($_REQUEST['search']) : '' ; $employee->read_sales_consultant($search, $gm_id,$db); }else if($apiKey === '6634138134581199' ){ $search = isset($_REQUEST['search']) ? $db -> escape($_REQUEST['search']) : '' ; $employee->read_sales_consultant_v2($search,$db); } else { $return_arr["message"]=" You are not allowed to do this action."; echo $return_arr["message"]; return; } } else { $return_arr["message"]=" You are not allowed to do this action."; echo $return_arr["message"]; return; } ?>