function __construct($link, $res) { parent::__construct($link, $res); if (gettype($res) == "boolean") { $this->res = null; $this->cur = 0; $this->max = 0; } else { $this->cur = 0; $this->max = mysqli_num_rows($this->res) - 1; } }
function DbPdoResult($link, $res) { parent::__construct($link, $res); $this->cur = 0; //EchoBacktrace(); if (!$this->res) { $this->rows = array(); } else { $this->rows = $this->res->fetchAll(); } $this->max = count($this->rows) - 1; }
function __construct($link, $res) { parent::__construct($link, $res); $this->cur = 0; $this->max = mssql_num_rows($this->res) - 1; }