Index: trunk/ippMonitor/def/autocode.php
===================================================================
--- trunk/ippMonitor/def/autocode.php	(revision 34014)
+++ trunk/ippMonitor/def/autocode.php	(revision 39498)
@@ -26,4 +26,5 @@
 
 // define restrictions to the queries
+$WHERE = "";
 // ** TABLE RESTRICTIONS **
 
@@ -40,8 +41,8 @@
 
 // get the result table count
-if ($MODE == "basic") {
+if ("$MODE" == "basic") {
   $sql = "SELECT count(*) FROM $TABLE $WHERE";
 }
-if ($MODE == "summary") {
+if ("$MODE" == "summary") {
   $sql = "SELECT count(*) FROM (SELECT $FIELDS FROM $TABLE $WHERE) as TEMP";
 }
@@ -53,5 +54,5 @@
   menu_end();
 }
-if (!$qry->fetchInto($row)) {
+if (!dbFetchInto($qry, $row)) {
   echo "<b>error reading $TABLE table count</b><br>\n";
   echo "<br><small><b> count query : $sql </b></small><br>\n";
@@ -78,8 +79,8 @@
 
 // query the database
-if ($MODE == "basic") {
+if ("$MODE" == "basic") {
   $sql = "SELECT $FIELDS FROM $TABLE $WHERE LIMIT $dTABLE OFFSET $rowStart";
 }
-if ($MODE == "summary") {
+if ("$MODE" == "summary") {
   $sql = "SELECT $FIELDS FROM $TABLE $WHERE LIMIT $dTABLE OFFSET $rowStart";
 }
@@ -94,4 +95,5 @@
 // ** HEAD CODE **
 
+$buttonLink = "";
 // ** BUTTON RESTRICTIONS **
 navigate_buttons ($rowStart, $rowLast, $dTABLE, $rowTotal, $buttonLink, $ID, '$FILE');
@@ -113,5 +115,5 @@
 
 // list the results
-while ($qry->fetchInto($row)) {
+while (dbFetchInto($qry, $row)) {
   // $link = "$FILE" . "?expID=" . $row[0] . "&" . $ID['link'];
 
