This commit is contained in:
Tim Krehan 2021-08-16 15:22:42 +02:00 committed by GitHub
commit 8fce6cd758
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,10 +1,14 @@
<?php <?php
include $_SESSION["docroot"].'/config/config.php'; include $_SESSION["docroot"].'/config/config.php';
$mysqli = new mysqli( $mysqli = mysqli_init();
$host = $CONFIG['host'], $mysqli->real_connect(
$username = $CONFIG['username'], $CONFIG['host'],
$passwd = $CONFIG['passwd'], $CONFIG['username'],
$database = $CONFIG['database'] $CONFIG['passwd'],
$CONFIG['database']
3306,
NULL,
MYSQLI_CLIENT_SSL
); );
$mysqli->set_charset("utf8mb4"); $mysqli->set_charset("utf8mb4");
if (!is_null($mysqli->connect_error)) if (!is_null($mysqli->connect_error))