mirror of
https://github.com/hakasenyang/osu-tournament-php
synced 2026-08-22 19:23:08 +09:00
Add files
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
namespace OsuTournament;
|
||||
/**
|
||||
* Osu Tournament for PHP
|
||||
* In production.
|
||||
*/
|
||||
|
||||
class DB {
|
||||
public $mysql;
|
||||
public function __construct($ip, $dbid, $dbpw, $dbnm)
|
||||
{
|
||||
$this->mysql = new mysqli($ip, $dbid, $dbpw, $dbnm);
|
||||
}
|
||||
public function Query($query)
|
||||
{
|
||||
// ...
|
||||
}
|
||||
public function Insert($query)
|
||||
{
|
||||
// ...
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user