\n" . "" . "Show Aggregate Information\n" . "

\n" . "\n" . "\n" ); if ($show_aggregate) { $result = mysql_query("select sum(d_total) as tot_sum, " . "sum(d_free) as free_sum, " . "sum(m_nbytes) as tot_mem " . "from host" . $query); $disk_info = mysql_fetch_object($result); printf( "

" . "Sum of total disk space on these hosts: " . $disk_info->tot_sum/(1024*1024*1024) . " GB" . "

" . "Sum of available disk space on these hosts: " . $disk_info->free_sum/(1024*1024*1024) . " GB" . "

" . "Sum of memory on these hosts: " . $disk_info->tot_mem/(1024*1024) . " MB" . "

" ); } echo "

Query is: $english_query

"; $result = mysql_query("select * from host" . $query); while ($host = mysql_fetch_object($result)) { show_host($host); } print_page_end(); ?>