<?php
class Articles {
public $dbc = mysqli_connect('localhost', 'admin', 'admin', 'test_task_one') or
die("Ошибка при подключении к серверу"); function create()
{
$query = "CREATE TABLE articles
(
id INT,
title VARCHAR(60),
text TEXT,
datetime DATETIME
) " ;
echo "string";
}
}
$test = new Articles();
$test ->create();
?>
PD9waHAKCQljbGFzcyBBcnRpY2xlcyB7IAoJIAlwdWJsaWMgJGRiYyA9IG15c3FsaV9jb25uZWN0KCdsb2NhbGhvc3QnLCAnYWRtaW4nLCAnYWRtaW4nLCAndGVzdF90YXNrX29uZScpCiAgICAgIG9yIGRpZSgi0J7RiNC40LHQutCwINC/0YDQuCDQv9C+0LTQutC70Y7Rh9C10L3QuNC4INC6INGB0LXRgNCy0LXRgNGDIik7CgkgICAgIGZ1bmN0aW9uIGNyZWF0ZSgpCgkgICAgewoJICAgIAkgJHF1ZXJ5ID0gIkNSRUFURSBUQUJMRSBhcnRpY2xlcyAKCSAgICAJKAoJICAgIAkJaWQgSU5ULAoJICAgIAkJdGl0bGUgVkFSQ0hBUig2MCksCgkgICAgCQl0ZXh0IFRFWFQsCgkgICAgCQlkYXRldGltZSBEQVRFVElNRQoJICAgIAkpICAiIDsgICAgIAoJCQkJCgkgICAgCSBteXNxbGlfcXVlcnkoJGRiYywgJHF1ZXJ5KSBvciBkaWUgKG15c3FsX2Vycm9yKCkpOwoJICAgIAkgZWNobyAic3RyaW5nIjsKCSAgICB9Cgl9CgkkdGVzdCA9IG5ldyBBcnRpY2xlcygpOwoJJHRlc3QgLT5jcmVhdGUoKTsKCT8+