|
Directory : /home/zjabogados/public_html/Libs/ |
<?php
//CLASE MGMData
class MGMData {
var $result;
var $cant_rows;
var $row;
function MGMData($query) {
$this->result = pg_query($query);
//echo "<br><br>$query";
if (strtoupper(substr($query, 0, 6)) == 'SELECT') {
$this->cant_rows = pg_num_rows($this->result);
}
}
function Next() {
$this->row = pg_fetch_array($this->result);
return $this->row;
}
function First() {
pg_result_seek($this->result, 0);
}
function Close() {
pg_free_result($this->result);
}
}
?>