チャット機能追加
This commit is contained in:
@@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
class
|
||||||
|
Common
|
||||||
|
{
|
||||||
|
var $db;
|
||||||
|
|
||||||
|
function
|
||||||
|
__construct ()
|
||||||
|
{
|
||||||
|
$config = include (__DIR__ . '/config.php');
|
||||||
|
|
||||||
|
$db_host = $config['host'];
|
||||||
|
$db_port = $config['port'];
|
||||||
|
$db_user = $config['user'];
|
||||||
|
$db_pass = $config['pass'];
|
||||||
|
|
||||||
|
$this -> db = new mysqli ($db_host, $db_user, $db_pass, 'goatoh_training', $db_port);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user