Added $config['database'] mysqli_connect() in DboMysqli::connect(), removed mysqli_select_db()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4661 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-03-23 10:56:42 +00:00
parent 7cee084212
commit f8023ff0dc

View file

@ -89,12 +89,7 @@ class DboMysqli extends DboSource {
*/
function connect() {
$config = $this->config;
$this->connection = mysqli_connect($config['host'], $config['login'], $config['password'], null, $config['port']);
if (mysqli_select_db($this->connection, $config['database'])) {
$this->connected = true;
}
$this->connection = mysqli_connect($config['host'], $config['login'], $config['password'], $config['database'], $config['port']);
return $this->connected;
}
/**