Revision 1011
Added by Matthias over 15 years ago
trunk/CHANGELOG | ||
---|---|---|
12 | 12 |
|
13 | 13 |
------------------------------------- 2.8.0 ------------------------------------- |
14 | 14 |
25-June-2009 Matthias Gallas |
15 |
+ Added option to use also MYSQL_ASSOC and MYSQL_NUM with mysql_fetch_array |
|
16 |
(Thanks to Luisehahne) |
|
15 | 17 |
# Bugfix for Error-Level settings (Thanks to Luisehahne) |
16 | 18 |
23-June-2009 Matthias Gallas |
17 | 19 |
# Moved styles from admin/pages/sections.php to sections.htt in backend themes |
trunk/wb/framework/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)