mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 06:13:32 +09:00
Update DB classes to use new config format
This commit is contained in:
parent
6876eac464
commit
e28856bfbb
9 changed files with 70 additions and 88 deletions
|
|
@ -48,15 +48,6 @@ class DBMssql extends DB
|
|||
$this->_connect();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of this class
|
||||
* @return DBMssql return DBMssql object instance
|
||||
*/
|
||||
function create()
|
||||
{
|
||||
return new DBMssql;
|
||||
}
|
||||
|
||||
/**
|
||||
* DB Connect
|
||||
* this method is private
|
||||
|
|
@ -68,7 +59,11 @@ class DBMssql extends DB
|
|||
//sqlsrv_configure( 'WarningsReturnAsErrors', 0 );
|
||||
//sqlsrv_configure( 'LogSeverity', SQLSRV_LOG_SEVERITY_ALL );
|
||||
//sqlsrv_configure( 'LogSubsystems', SQLSRV_LOG_SYSTEM_ALL );
|
||||
$result = @sqlsrv_connect($connection["db_hostname"], array('Database' => $connection["db_database"], 'UID' => $connection["db_userid"], 'PWD' => $connection["db_password"]));
|
||||
$result = @sqlsrv_connect($connection['host'], array(
|
||||
'Database' => $connection['database'],
|
||||
'UID' => $connection['user'],
|
||||
'PWD' => $connection['pass'],
|
||||
));
|
||||
|
||||
if(!$result)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue