\n"; $detinfo .= "Detector Systems\n"; foreach($tables as $table){ $query = "SELECT count(*) FROM $table"; if($res = $db->query($query)){ $N = $res->fetchColumn(); }else{ $N = "db query error!"; print_r($db->errorInfo()); } $detinfo .= "\n"; $detinfo .= "$table\n"; $detinfo .= ":\n"; $detinfo .= "$N\n"; $detinfo .= "\n"; } $detinfo .= "\n"; // Areas if($res = $db->query("SELECT area FROM Crate GROUP BY area")){ while($row = $res->fetch(PDO::FETCH_ASSOC)){ $areas[] = $row["area"]; } } $areainfo = "\n"; $areainfo .= "\n"; foreach($areas as $area){ $areainfo .= "\n"; } $areainfo .= "
Areas in Hall
$area
\n"; // Get table for main part of window (if specified) $main_content = ""; if($table_main != ""){ $main_content = ShowTable($table_main); } ?> Hall-D Translation Table Browser/Editor

Hall-D Translation Table Browser