process_form_items(); $main_query = " SELECT app_version_num AS App_Version, case when INSTR(host.os_name, 'Darwin') then 'Darwin' when INSTR(host.os_name, 'Linux') then 'Linux' when INSTR(host.os_name, 'Windows') then 'Windows' when INSTR(host.os_name, 'SunOS') then 'SunOS' else 'Unknown' end AS OS_Name, case when INSTR(host.os_name, 'Linux') then case when INSTR(LEFT(host.os_version, 6), '-') then LEFT(host.os_version, (INSTR(LEFT(host.os_version, 6), '-') - 1)) else LEFT(host.os_version, 6) end else host.os_version end AS OS_Version, exit_status, COUNT(*) AS error_count FROM result left join host on result.hostid = host.id WHERE appid = '$query_appid' and server_state = '5' and outcome = '3' and received_time > '$query_received_time' GROUP BY app_version_num DESC, OS_Name, OS_Version, exit_status "; $urlquery = $q->urlquery; $result = mysql_query($main_query); echo "
App Version | OS Name | OS Version | Exit Status | Error Count |
---|---|---|---|---|
"; echo $res->App_Version; echo " | "; echo ""; echo $res->OS_Name; echo " | "; echo ""; echo $res->OS_Version; echo " | "; echo ""; $exit_status_condition = "exit_status=$res->exit_status"; echo link_results(exit_status_string($res), $urlquery, "$exit_status_condition", ""); echo " | "; echo ""; echo $res->error_count; echo " | "; echo "