The following files exists in this folder. Click to view.
db_connect.php
dict.xml
practice.php
user.php
util.php
db_connect.php
14 lines ASCII Windows (CRLF)
<?php
error_reporting(E_ERROR | E_PARSE);
$db = new mysqli("127.0.0.1", "word_app", "123abc", "word_app", 3306);
function quick_statment($statement, $types, ...$values)
{
global $db;
$stmt = $db->prepare($statement);
$stmt->bind_param($types, ...$values);
$stmt->execute();
return $stmt->get_result();
}
//echo $db->host_info . "\n";