Changeset 39498 for trunk/ippMonitor/raw/czartool_labels.php
- Timestamp:
- Mar 31, 2016, 6:26:07 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/raw/czartool_labels.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/raw/czartool_labels.php
r38719 r39498 313 313 314 314 // list the results 315 while ( $qry->fetchInto($row)) {315 while (dbFetchInto($qry, $row)) { 316 316 317 317 echo "<tr>"; … … 358 358 359 359 // list the results 360 while ( $qry->fetchInto($expType)) {360 while (dbFetchInto($qry, $expType)) { 361 361 362 362 $sql = "SELECT COUNT(*) FROM summitExp WHERE dateobs > '$date' AND exp_type = '$expType[0]'"; 363 363 $qry2 = $projectdb->query($sql); 364 $qry2->fetchInto($summit);364 dbFetchInto($qry2, $summit); 365 365 $sql = "SELECT COUNT(*) FROM summitExp JOIN rawExp ON summitExp.exp_name = rawExp.exp_name WHERE summitExp.dateobs > '$date' AND summitExp.exp_type = '$expType[0]'"; 366 366 $qry2 = $projectdb->query($sql); 367 $qry2->fetchInto($mhpcc);367 dbFetchInto($qry2, $mhpcc); 368 368 369 369 echo "<tr>"; … … 397 397 $qry = $db->query($sql); 398 398 if (dberror($qry)) {echo "<b>error with $sql </b><br>\n";} 399 while ( $qry->fetchInto($row)) {399 while (dbFetchInto($qry, $row)) { 400 400 401 401 $labels[] = $row[0]; … … 621 621 $qry = $db->query($sql); 622 622 if (dberror($qry)) {echo "<b>error with $sql </b><br>\n";} 623 $qry->fetchInto($row);623 dbFetchInto($qry, $row); 624 624 625 625 return $row[0]; … … 655 655 $qry = $db->query($sql); 656 656 if (dberror($qry)) {echo "<b>error with $sql </b><br>\n";} 657 $qry->fetchInto($row);657 dbFetchInto($qry, $row); 658 658 659 659 return $row[0]; … … 673 673 $qry = $db->query($sql); 674 674 if (dberror($qry)) {echo "<b>error with $sql </b><br>\n";} 675 $qry->fetchInto($row);675 dbFetchInto($qry, $row); 676 676 677 677 $pending = $row[0]; … … 730 730 $dates = ""; 731 731 $firstIn = true; 732 while ( $qry->fetchInto($row)) {732 while (dbFetchInto($qry, $row)) { 733 733 734 734 if ($firstIn) { … … 887 887 $qry = $db->query($sql); 888 888 if (dberror($qry)) {echo "<b>error with $sql </b><br>\n";} 889 $qry->fetchInto($row);889 dbFetchInto($qry, $row); 890 890 891 891 $alive = $row[0]; … … 906 906 $qry = $db->query($sql); 907 907 if (dberror($qry)) {echo "<b>error with $sql </b><br>\n";} 908 $qry->fetchInto($row);908 dbFetchInto($qry, $row); 909 909 910 910 return $row[0]; … … 947 947 } 948 948 $res = $dbRepl->query('SHOW SLAVE STATUS'); 949 while ( $res->fetchInto($row)) {949 while (dbFetchInto($res, $row)) { 950 950 # Have a look for Last_Errno in http://dev.mysql.com/doc/refman/5.0/en/show-slave-status.html 951 951 $errorStatusInMySql = $row[18];
Note:
See TracChangeset
for help on using the changeset viewer.
