Changeset 39498 for trunk/ippMonitor/def/autocode.php
- Timestamp:
- Mar 31, 2016, 6:26:07 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/def/autocode.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/def/autocode.php
r34014 r39498 26 26 27 27 // define restrictions to the queries 28 $WHERE = ""; 28 29 // ** TABLE RESTRICTIONS ** 29 30 … … 40 41 41 42 // get the result table count 42 if ( $MODE== "basic") {43 if ("$MODE" == "basic") { 43 44 $sql = "SELECT count(*) FROM $TABLE $WHERE"; 44 45 } 45 if ( $MODE== "summary") {46 if ("$MODE" == "summary") { 46 47 $sql = "SELECT count(*) FROM (SELECT $FIELDS FROM $TABLE $WHERE) as TEMP"; 47 48 } … … 53 54 menu_end(); 54 55 } 55 if (! $qry->fetchInto($row)) {56 if (!dbFetchInto($qry, $row)) { 56 57 echo "<b>error reading $TABLE table count</b><br>\n"; 57 58 echo "<br><small><b> count query : $sql </b></small><br>\n"; … … 78 79 79 80 // query the database 80 if ( $MODE== "basic") {81 if ("$MODE" == "basic") { 81 82 $sql = "SELECT $FIELDS FROM $TABLE $WHERE LIMIT $dTABLE OFFSET $rowStart"; 82 83 } 83 if ( $MODE== "summary") {84 if ("$MODE" == "summary") { 84 85 $sql = "SELECT $FIELDS FROM $TABLE $WHERE LIMIT $dTABLE OFFSET $rowStart"; 85 86 } … … 94 95 // ** HEAD CODE ** 95 96 97 $buttonLink = ""; 96 98 // ** BUTTON RESTRICTIONS ** 97 99 navigate_buttons ($rowStart, $rowLast, $dTABLE, $rowTotal, $buttonLink, $ID, '$FILE'); … … 113 115 114 116 // list the results 115 while ( $qry->fetchInto($row)) {117 while (dbFetchInto($qry, $row)) { 116 118 // $link = "$FILE" . "?expID=" . $row[0] . "&" . $ID['link']; 117 119
Note:
See TracChangeset
for help on using the changeset viewer.
