$mysql -> query ("INSERT INTO number (id, number, dt_start) VALUES (NULL, '$login', current_timestamp())");
$login = md5 ($login."1111");
$mysql = new mysqli ('localhost', 'root', '', 'key');
$mysql -> query("INSERT INTO number (number) VALUES ('$login')");
$result = $mysql ->query("SELECT dt_end FROM key WHERE key = :key AND NOW() >= dt_start AND NOW() <= dt_end");
$mysql -> close();