mirror of
https://github.com/tim-krehan/shopping-list.git
synced 2024-11-24 06:40:01 +01:00
Merge 9dafc736d3
into b5cebdadfb
This commit is contained in:
commit
8fce6cd758
1 changed files with 9 additions and 5 deletions
|
@ -1,10 +1,14 @@
|
|||
<?php
|
||||
include $_SESSION["docroot"].'/config/config.php';
|
||||
$mysqli = new mysqli(
|
||||
$host = $CONFIG['host'],
|
||||
$username = $CONFIG['username'],
|
||||
$passwd = $CONFIG['passwd'],
|
||||
$database = $CONFIG['database']
|
||||
$mysqli = mysqli_init();
|
||||
$mysqli->real_connect(
|
||||
$CONFIG['host'],
|
||||
$CONFIG['username'],
|
||||
$CONFIG['passwd'],
|
||||
$CONFIG['database']
|
||||
3306,
|
||||
NULL,
|
||||
MYSQLI_CLIENT_SSL
|
||||
);
|
||||
$mysqli->set_charset("utf8mb4");
|
||||
if (!is_null($mysqli->connect_error))
|
||||
|
|
Loading…
Reference in a new issue