note 123198 added to mysqli.connect-error
| From: | gejez at polyswarms dot com | Date: | Fri, 05 Oct 2018 10:38:12 +0000 |
| Subject: | note 123198 added to mysqli.connect-error | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209371@lists.php.net to get a copy of this message | ||
<?php
class bDBresult {
private $result;
public function __construct($res) {
$this->result = $res;
}
public function num_rows() {
return $this->result->num_rows;
}
public function next_row() {
return $this->result->fetch_assoc();
}
}
class bDB {
private static $conf;
private $conn;
public static function set_conf_file($dbconf_path) {
self::$conf = parse_ini_file($dbconf_path);
}
public function __construct() {
$this->conn = new mysqli(
self::$conf['db.host.address'],
self::$conf['db.user.admin.name'],
self::$conf['db.user.admin.password'],
self::$conf['db.bibliotecando.name']
);
}
public function send_query($coms) {
return new bDBresult($this->conn->query($coms));
}
}
?>
----
Server IP: 208.43.231.9
Probable Submitter: 80.22.153.170
----
Manual Page -- http://php.net/manual/en/mysqli.connect-error.php
Edit -- https://master.php.net/note/edit/123198
Del: integrated -- https://master.php.net/note/delete/123198/integrated
Del: useless -- https://master.php.net/note/delete/123198/useless
Del: bad code -- https://master.php.net/note/delete/123198/bad+code
Del: spam -- https://master.php.net/note/delete/123198/spam
Del: non-english -- https://master.php.net/note/delete/123198/non-english
Del: in docs -- https://master.php.net/note/delete/123198/in+docs
Del: other reasons-- https://master.php.net/note/delete/123198
Reject -- https://master.php.net/note/reject/123198
Search -- https://master.php.net/manage/user-notes.php