mirror of
https://github.com/tim-krehan/shopping-list.git
synced 2024-11-23 22:30:41 +01:00
Merge 9dafc736d3
into 25f698a186
This commit is contained in:
commit
3a84945219
1 changed files with 9 additions and 5 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue