|
Directory : /home/zjabogados/public_html/Libs/ |
<?php
//CLASE MGMData
class MGMData {
var $result;
var $cant_rows;
var $row;
function MGMData($query) {
$this->result = mssql_query($query);
//echo "<br><br>$query";
if (strtoupper(substr($query, 0, 6)) == 'SELECT') {
$this->cant_rows = mssql_num_rows($this->result);
}
}
function Next() {
$this->row = mssql_fetch_array($this->result);
return $this->row;
}
function First() {
mssql_data_seek($this->result, 0);
}
function Seek($position) {
mssql_data_seek($this->result, $position);
}
function Close() {
mssql_free_result($this->result);
}
}
?>