IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 31, 2016, 6:26:07 AM (10 years ago)
Author:
eugene
Message:

fix MDB2 DBI methods; avoid php warnings by putting quotes around hash arguments; check for hash element existence before using; simplify code with get_htmlkey_value function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/raw/czartool_ipptopsps.php

    r33846 r39498  
    176176    $qry = $db->query($sql);
    177177    if (dberror($qry)) {echo "<b>error with $sql </b><br>\n";}
    178     while ($qry->fetchInto($row)) {
     178    while (dbFetchInto($qry, $row)) {
    179179
    180180        $labels[] = $row[0];
     
    367367    $qry = $db->query($sql);
    368368    if (dberror($qry)) {echo "<b>error with $sql </b><br>\n";}
    369     $qry->fetchInto($row);
     369    dbFetchInto($qry, $row);
    370370
    371371    $pending = $row[0];
     
    400400    $qry = $db->query($sql);
    401401    if (dberror($qry)) {echo "<b>error with $sql </b><br>\n";}
    402     $qry->fetchInto($row);
     402    dbFetchInto($qry, $row);
    403403
    404404    return $row[0];
Note: See TracChangeset for help on using the changeset viewer.