mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
#312 Updater uses $databanktype
This commit is contained in:
parent
c9ffcbd1f6
commit
290c969d0f
@ -78,7 +78,7 @@ if (!isset($sql)) {
|
||||
include(EASYWIDIR . '/stuff/config.php');
|
||||
|
||||
try {
|
||||
$sql = new PDO("$databanktype:host=$host;dbname=$db", $user, $pwd, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"));
|
||||
$sql = new PDO("mysql:host=$host;dbname=$db", $user, $pwd, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"));
|
||||
}
|
||||
catch(PDOException $error) {
|
||||
echo $error->getMessage();
|
||||
|
Loading…
x
Reference in New Issue
Block a user