Beispiel #1
0
 public function query()
 {
     $conn = load::getConnection();
     $sql = $this->get_sql();
     $output = "";
     $result = pg_query($conn, $sql);
     if ($result && pg_num_rows($result) > 0) {
         while ($row = pg_fetch_array($result)) {
             $output .= $this->process_row($row);
         }
     }
     pg_close($conn);
     return $output;
 }