$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 ();