name"); $i = 1; $result = mysql_query("select * from host where userid=$userid order by expavg_credit desc limit $max_hosts_display"); while (($host = mysql_fetch_object($result)) && $max_hosts_display > 0) { show_host_row($host, $i); $max_hosts_display--; $i++; } mysql_free_result($result); echo "\n"; page_tail(); ?>