Source code raw phps
<?php
require_once 'libraries/class.DB_Common_Results.php';
class DB_mySQL_Results extends DB_Common_Results
{
protected $_results = array();
protected $_resource;
protected $_numRows;
protected $_counter = 0;
public function __construct($resource)
{
$this->_resource = $resource;
$this->_numRows = mysql_num_rows($resource);
}
public function doFetch($fetch_mode = DB_FETCH_ASSOC)
{
return mysql_fetch_array($this->_resource, $fetch_mode);
}
}
?>
Comments
There is currently no comment here.