dbh = $dbh; parent::Table_Data($query, $fields, $default_orderby); if ($this->orderby && !preg_match('/order by/',$query)) { $this->data_source .= " order by ".$this->orderby; } } function aquire() { $result = pg_query($this->dbh, $this->data_source); $num_rows = pg_num_rows($result); if (!($result)) { return; } for ($i=0; $i < $num_rows; $i++) { $row = pg_fetch_array($result, $i, PGSQL_ASSOC); $this->add_row($row); } } } ?>