<?php
$mysqli = new mysqli("localhost", "root", "", "mybase");
$mysqli->query("SET NAMES 'utf8'");
$success = $mysqli->query("INSERT INTO `users`
(`login`, `password`, `reg-date`)
VALUES ('123', '" . md5("123") . "', '" . time() . "')");
echo $success;
$mysqli->close();
// echo phpinfo();