Revision 1011
Added by Matthias over 16 years ago
| class.database.php | ||
|---|---|---|
| 143 | 143 |
function numRows() {
|
| 144 | 144 |
return mysql_num_rows($this->result); |
| 145 | 145 |
} |
| 146 |
|
|
| 147 |
// Fetch row |
|
| 148 |
function fetchRow() {
|
|
| 149 |
return mysql_fetch_array($this->result); |
|
| 146 |
|
|
| 147 |
// Fetch row $typ = MYSQL_ASSOC, MYSQL_NUM, MYSQL_BOTH
|
|
| 148 |
function fetchRow($typ = MYSQL_BOTH) {
|
|
| 149 |
return mysql_fetch_array($this->result, $typ);
|
|
| 150 | 150 |
} |
| 151 |
|
|
| 151 |
|
|
| 152 | 152 |
// Get error |
| 153 | 153 |
function error() {
|
| 154 | 154 |
if(isset($this->error)) {
|
Also available in: Unified diff
Added option to use also MYSQL_ASSOC and MYSQL_NUM with mysql_fetch_array (Thanks to Luisehahne)