include ("head.php"); ?> $names =array(); $tables=array(); $types=array(); function show_select($name,$table,$numeric=0){ global $names,$tables,$types; $names[]=$name; $tables[]=$table; $types[]="select"; $query="select DISTINCT $name from $table"; if($numeric){ $query="select DISTINCT round($name,2) as $name from $table"; } $result = mysql_query($query); $nrows = mysql_num_rows($result); if($nrows==0) return; echo "