Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: db_mysqli.php 4138 2008-08-21 20:23:13Z Tikitiki $
| * $Id: db_mysqli.php 4261 2008-11-03 01:11:33Z Tikitiki $
|
*/
class DB_MySQLi
| */
class DB_MySQLi
|
Zeile 143 | Zeile 143 |
---|
{ $connections['read'][] = $config; }
|
{ $connections['read'][] = $config; }
|
| else
|
// Connecting to more than one server { // Specified multiple servers, but no specific read/write servers
| // Connecting to more than one server { // Specified multiple servers, but no specific read/write servers
|
Zeile 238 | Zeile 239 |
---|
}
// Select databases
|
}
// Select databases
|
$this->select_db($config['database']);
| if(!$this->select_db($config['database'])) { return false; }
|
$this->current_link = &$this->read_link; return $this->read_link;
| $this->current_link = &$this->read_link; return $this->read_link;
|
Zeile 496 | Zeile 500 |
---|
{ return mysqli_errno($this->current_link); }
|
{ return mysqli_errno($this->current_link); }
|
else { return mysqli_connect_errno(); }
| else { return mysqli_connect_errno(); }
|
}
/** * Return an error string. * * @return string The explanation for the current error.
|
}
/** * Return an error string. * * @return string The explanation for the current error.
|
*/
| */
|
function error_string() { if($this->current_link) { return mysqli_error($this->current_link);
|
function error_string() { if($this->current_link) { return mysqli_error($this->current_link);
|
}
| }
|
else { return mysqli_connect_error();
| else { return mysqli_connect_error();
|
Zeile 549 | Zeile 553 |
---|
{ trigger_error("<strong>[SQL] [".$this->error_number()."] ".$this->error_string()."</strong><br />{$string}", E_USER_ERROR); }
|
{ trigger_error("<strong>[SQL] [".$this->error_number()."] ".$this->error_string()."</strong><br />{$string}", E_USER_ERROR); }
|
| } else { return false;
|
} }
| } }
|
Zeile 1131 | Zeile 1139 |
---|
*/ function fetch_db_charsets() {
|
*/ function fetch_db_charsets() {
|
if($this_link && $this->get_version() < 4.1)
| if($this->link && version_compare($this->get_version(), "4.1", "<"))
|
{ return false; }
| { return false; }
|