Browse Source

add admin view

andre 4 years ago
parent
commit
56fae1659e
1 changed files with 3 additions and 2 deletions
  1. 3 2
      action.php

+ 3 - 2
action.php

@@ -35,11 +35,12 @@ class action {
         $dbAction->execute();
         $dbAction->store_result();
         $dbAction->bind_result($ip);
-        while($dbAction->fetch()) {
+/*        while($dbAction->fetch()) {
             array_push($list,$ip);
         };
         print_r($list);
-        return $list;
+        return $list;*/
+        return $dbAction->fetch_all();
     }
 
     private function isListed($ip) {