diff --git a/include/admin.inc.php b/include/admin.inc.php index 5c9a453..fef3dcc 100644 --- a/include/admin.inc.php +++ b/include/admin.inc.php @@ -36,7 +36,7 @@ $dbParams = array( 'user' => DB_WRITE_USER, 'password' => DB_WRITE_PASS, 'host' => DB_SERVER, - 'driver' => 'mysqli', + 'driver' => 'pdo_mysql', 'charset' => 'utf8mb4' ); $dbConnection = \Doctrine\DBAL\DriverManager::getConnection($dbParams, $dbConfig); @@ -77,7 +77,7 @@ function mt_login($username, $password, $already_hashed = false) { } $username = sanitize_username( $username ); - + // Get user info from the database $sql = 'SELECT * FROM contributor WHERE name LIKE ?'; $stmt = $dbConnection->executeQuery($sql, array($username));