<?php
$root = $_SERVER['DOCUMENT_ROOT'];
$connect = array('localhost', 'cd90484_lasthero', '112233', 'cd90484_lasthero');
$base = $db = new mysqli($connect['0'], $connect['1'], $connect['2'], $connect['3']);
$base -> query("SET NAMES 'UTF8'");
if($base -> connect_errno) die('ERROR -> '.$base -> connect_error);
$db->query("INSERT INTO `demons_battles` (`status`,`starttime`) VALUES ('prepare', '".(time()+300)."')");