Advertisement
eqeqwan21

Untitled

Apr 3rd, 2022
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  private function get_devicenames()
  2.  {
  3.      if(isset($_GET['filter'])){
  4.          $mapfilter = $this->mapfilter();
  5.          $installfilter = $this->installfilter();
  6.          $sql = "SELECT distinct Name, Town_id, District from Devices where $mapfilter and $installfilter order by Name limit 1000";
  7.      }
  8.      else{
  9.          $sql = "SELECT distinct Name from Devices order by Name limit 1000";
  10.      }
  11.  
  12.      $this->run_query($sql);
  13.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement