Index: trunk/ippMonitor/Makefile.in
===================================================================
--- trunk/ippMonitor/Makefile.in	(revision 28604)
+++ trunk/ippMonitor/Makefile.in	(revision 28606)
@@ -61,5 +61,5 @@
 $(DESTWWW)/select_forms.php \
 $(DESTWWW)/plotHistogram.php \
-
+$(DESTWWW)/columns_in_db.php
 
 DEFSRC = \
Index: trunk/ippMonitor/raw/columns_in_db.php
===================================================================
--- trunk/ippMonitor/raw/columns_in_db.php	(revision 28606)
+++ trunk/ippMonitor/raw/columns_in_db.php	(revision 28606)
@@ -0,0 +1,72 @@
+<?php
+
+$pageTitle = 'Columns in DB Tables';
+
+include 'ipp.php';
+
+$ID = checkID ();
+
+if (! $ID['proj']) { projectform ($ID); }
+
+$db = dbconnect($ID['proj']);
+
+if ($ID['menu']) {
+  $myMenu = $ID['menu'];
+} else {
+  $myMenu = "ipp.menu.dat";
+}
+
+menu($myMenu, $pageTitle, 'ipp.css', $ID['link'], $ID['proj']);
+
+echo "<p> $pageTitle </p>";
+
+// Table names query
+$tableNames = array (
+	    0 => "camRun",
+	    1 => "camProcessedExp",
+	    2 => "chipProcessedImfile",
+	    3 => "chipRun",
+	    4 => "fakeRun",
+	    5 => "rawExp",
+	    6 => "warpRun",
+	    7 => "warpSkyCellMap",
+		     );
+
+echo "<b>This script does not do anything but showing the current columns in the various db tables</b><br/><br/>";
+
+foreach ($tableNames as $tIndex => $tableName) {
+	$sql = "show columns from `$tableName`";
+	$qry = $db->query($sql);
+	if (dberror($qry)) {
+	  echo "<b>error reading querying table</b><br>\n";
+	    echo "<br><small><b> table query : $sql </b></small><br>\n";
+	    menu_end();
+	}
+	if (!$qry->fetchInto($row)) {
+	  echo "<b>error querying table</b><br>\n";
+  	  echo "<br><small><b>query : $sql </b></small><br>\n";
+  	  menu_end();
+	}
+	$count = 0;
+	$line = "";
+	$values = array();
+	while ($qry->fetchInto($row)) {
+	  foreach ($row as $index => $value) {
+	    if ($index == 0) {
+	      $values[] = $value;
+	    }
+	  }
+	}
+	asort($values);
+	foreach ($values as $index => $value) {
+	  #echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;".$index." => ".$value."<br>";
+	  $count++;
+	    $line .= "<option value=\"$value\">$value</option>\n";
+	}
+	echo "<b>Table name: $tableName</b><br>\n";
+	echo "Count = $count columns<br>\n";
+	echo "<select name=\"blah\">\n".$line."\n</select><br>\n";
+}
+
+menu_end();
+?>
Index: trunk/ippMonitor/raw/ipp.imfiles.dat
===================================================================
--- trunk/ippMonitor/raw/ipp.imfiles.dat	(revision 28604)
+++ trunk/ippMonitor/raw/ipp.imfiles.dat	(revision 28606)
@@ -18,16 +18,10 @@
 menutop   | menutop      | link    | test page                    | phptest.php     
 menutop   | menutop      | link    | night summary                | nightSummary.php
-menutop   | menutop      | link    | simple plot - raw            | simplePlotraw.php
-menutop   | menutop      | link    | simple plot - chip           | simplePlot.php
-menutop   | menutop      | link    | simple plot - cam            | simplePlotcam.php
+menutop   | menutop      | link    | simple plot - raw (to remove?) | simplePlotraw.php
+menutop   | menutop      | link    | simple plot - chip (to remove?) | simplePlot.php
+menutop   | menutop      | link    | simple plot - cam (to remove?) | simplePlotcam.php
 menutop   | menutop      | link    | czartool                     | czartool_labels.php
 menutop   | menutop      | link    | mask stats                   | maskStats.php
-menutop   | menutop      | link    | histogram                    | histogram.php
-menutop   | menutop      | link    | Scatter plot                 | plot_x_vs_y.php
 
-menutop   | menutop      | link    | Simple plot - raw            | simplePlotRawImage.php
-menutop   | menutop      | link    | Simple plot - chip            | simplePlotChipImage.php
-menutop   | menutop      | link    | Simple plot - cam            | simplePlotCamImage.php
-menutop   | menutop      | link    | Histogram background     | histogramBackgroundImage.php
-menutop   | menutop      | link    | Histogram Fwhm Major (camProcessedExp)     | histogramCamProcessedExpImage.php
-menutop   | menutop      | link    | Histogram Fwhm Minor (chip processed)     | histogramChipProcessedImfileFwhmMajorImage.php
+menutop   | menutop      | plain   | &nbsp;                       | 
+menulink  | menuselect 	 | link    | Tables columns               | columns_in_db.php
