You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unless I'm missing something obvious, this function always returns false?
/** * Selects the default database for queries. * * <code> * // set the default database for queries * $db->select_database('database_name'); * </code> * * @param string $database Name of database to select as the default database for queries. * * @since 2.9.4 * * @return boolean Returns TRUE on success or FALSE on failure. */publicfunctionselect_database($database) {
// if no active connection exists, return falseif (!$this->_connected()) returnfalse;
// update the value in the credentials$this->credentials['database'] = $database;
// select the database
mysqli_select_db($this->connection, $database);
}
The text was updated successfully, but these errors were encountered:
Hi,
Unless I'm missing something obvious, this function always returns false?
The text was updated successfully, but these errors were encountered: