diff --git a/doc/get_platforms.inc b/doc/get_platforms.inc index c80bb98bab..e67735b9d5 100644 --- a/doc/get_platforms.inc +++ b/doc/get_platforms.inc @@ -37,7 +37,7 @@ function friendly_name($p) { } if (strlen($pc)) { if (strstr($pc, 'cuda')) $q .= " (NVIDIA GPU)"; - else if (strstr($pc, 'ati')) $q .= " (ATI GPU)"; + else if (strstr($pc, 'ati')) $q .= " (AMD/ATI GPU)"; else if (strstr($pc, 'mt')) $q .= " (multicore)"; } return $q; diff --git a/html/inc/db_conn.inc b/html/inc/db_conn.inc index 930b58b974..ab00049693 100644 --- a/html/inc/db_conn.inc +++ b/html/inc/db_conn.inc @@ -152,6 +152,14 @@ class DbConn { if ($cnt) return (double)$cnt->total; return null; } + function max($table, $field, $clause="") { + $query = "select max($field) as total from ".$this->db_name.".$table $clause"; + $result = $this->do_query($query); + $cnt = mysql_fetch_object($result); + mysql_free_result($result); + if ($cnt) return (double)$cnt->total; + return null; + } function replace($table, $clause) { $query = "replace into ".$this->db_name.".$table set $clause"; return $this->do_query($query);