MastodonHelp/web/site/mustard/include/myconn.php

10 lines
350 B
PHP
Raw Normal View History

2019-12-26 21:57:36 +01:00
<?php
2020-05-01 06:51:22 +02:00
require(__DIR__.'/getiniarr.php');
2019-12-26 21:57:36 +01:00
$link=mysqli_connect($iniarr['db_host'],$iniarr['db_admin_name'],$iniarr['db_admin_password'],$iniarr['db_name'],$iniarr['db_port'],$iniarr['db_socket'])
2020-05-01 06:51:22 +02:00
or muoribene('Couldnt connect to database: '.mysqli_connect_error().' ['.mysqli_connect_errno().']',false);
2019-12-28 22:51:41 +01:00
mysqli_set_charset($link,'utf8mb4');
2019-12-26 21:57:36 +01:00
?>