<?php
$root = $_SERVER['DOCUMENT_ROOT'];
include_once ($root.'/core/base.php');
for($i=0;$i<5;$i++)
{
$lastUser = $db->query("SELECT * FROM `users` ORDER BY `id` DESC LIMIT 1")->fetch_object();
$login = 'Новичок'.($lastUser->id+1);
$password = 1;
$db->query("INSERT INTO `users` (`login`,`password`,`date_online`,`date_registr`,`save`,`sex`) VALUES ('".$login."', '".$password."', '".(time()+3600)."', '".time()."', '1', '1')");
}