Index: trunk/ippMonitor/raw/czartool_labels.php
===================================================================
--- trunk/ippMonitor/raw/czartool_labels.php	(revision 38719)
+++ trunk/ippMonitor/raw/czartool_labels.php	(revision 39498)
@@ -313,5 +313,5 @@
 
     // list the results
-    while ($qry->fetchInto($row)) {
+    while (dbFetchInto($qry, $row)) {
 
         echo "<tr>";
@@ -358,12 +358,12 @@
 
     // list the results
-    while ($qry->fetchInto($expType)) {
+    while (dbFetchInto($qry, $expType)) {
 
         $sql = "SELECT COUNT(*) FROM summitExp WHERE dateobs > '$date' AND exp_type = '$expType[0]'";
         $qry2 = $projectdb->query($sql);
-        $qry2->fetchInto($summit);
+      dbFetchInto($qry2, $summit);
         $sql = "SELECT COUNT(*) FROM summitExp JOIN rawExp ON summitExp.exp_name = rawExp.exp_name WHERE summitExp.dateobs > '$date' AND summitExp.exp_type = '$expType[0]'";
         $qry2 = $projectdb->query($sql);
-        $qry2->fetchInto($mhpcc);
+      dbFetchInto($qry2, $mhpcc);
 
         echo "<tr>";
@@ -397,5 +397,5 @@
     $qry = $db->query($sql);
     if (dberror($qry)) {echo "<b>error with $sql </b><br>\n";}
-    while ($qry->fetchInto($row)) {
+    while (dbFetchInto($qry, $row)) {
 
         $labels[] = $row[0];
@@ -621,5 +621,5 @@
     $qry = $db->query($sql);
     if (dberror($qry)) {echo "<b>error with $sql </b><br>\n";}
-    $qry->fetchInto($row);
+    dbFetchInto($qry, $row);
 
     return $row[0];
@@ -655,5 +655,5 @@
     $qry = $db->query($sql);
     if (dberror($qry)) {echo "<b>error with $sql </b><br>\n";}
-    $qry->fetchInto($row);
+    dbFetchInto($qry, $row);
 
     return $row[0];
@@ -673,5 +673,5 @@
     $qry = $db->query($sql);
     if (dberror($qry)) {echo "<b>error with $sql </b><br>\n";}
-    $qry->fetchInto($row);
+    dbFetchInto($qry, $row);
 
     $pending = $row[0];
@@ -730,5 +730,5 @@
     $dates = ""; 
     $firstIn = true;
-    while ($qry->fetchInto($row)) {
+    while (dbFetchInto($qry, $row)) {
 
         if ($firstIn) {
@@ -887,5 +887,5 @@
     $qry = $db->query($sql);
     if (dberror($qry)) {echo "<b>error with $sql </b><br>\n";}
-    $qry->fetchInto($row);
+    dbFetchInto($qry, $row);
 
     $alive = $row[0];
@@ -906,5 +906,5 @@
     $qry = $db->query($sql);
     if (dberror($qry)) {echo "<b>error with $sql </b><br>\n";}
-    $qry->fetchInto($row);
+    dbFetchInto($qry, $row);
 
     return $row[0];
@@ -947,5 +947,5 @@
     }
     $res = $dbRepl->query('SHOW SLAVE STATUS');
-    while ($res->fetchInto($row)) {
+    while (dbFetchInto($res, $row)) {
         # Have a look for Last_Errno in http://dev.mysql.com/doc/refman/5.0/en/show-slave-status.html
         $errorStatusInMySql = $row[18];
