<?php
include 'data/base.php';
if(isset($_POST['submit'])){
$login = $_POST['login'];
$password = $_POST['password'];
$rep_password = $_POST['rep_passworld'];
$email = $_POST['email'];
if($base->prepare("SELECT * FROM `register` WHERE `login` != $login")){
$stmt = $base->prepare("INSERT INTO `register` (`login`, `password`, `email`) VALUES (?, ?, ?)");
$stmt->bind_param("sss", $login, $password, $email);
$stmt->execute();
} else{
echo 'Такой пользователь уже существует!';
}
}
?>
<?php
include 'data/base.php';
if(isset($_POST['submit'])){
$login = $_POST['login'];
$password = $_POST['password'];
$rep_password = $_POST['rep_passworld'];
$email = $_POST['email'];
$stmt = $base->prepare("INSERT INTO `register` (`login`, `password`, `email`) VALUES (?, ?, ?)");
$stmt->bind_param("sss", $login, $password, $email);
if($base->prepare("SELECT * FROM `register` WHERE `login` != $stmt->bind_param($login)")){
$stmt->execute();
} else{
echo 'Такой пользователь уже существует!';
}
}
?>
const wrapper = document.querySelector('.wrapper');
var images = ['url(../img/intro/1.jpg)', 'url(../img/intro/2.jpg)', 'url(../img/intro/3.jpg)', 'url(../img/intro/4.jpg)', 'url(../img/intro/5.jpg)' ,'url(../img/intro/6.jpg)'];
let lastnum;
function toggles(){
let num;
do{
num = Math.floor(Math.random() * 6);
} while(num == lastnum);
lastnum = num;
wrapper.style.background = images[num];
}
setInterval(toggles, 2000);
const louder = document.querySelector('.louder');
const mediaContent = document.querySelectorAll('img');
window.onload = () =>{
load();
}
function load(){
setInterval(() =>{
louder.classList.add('remove');
}, 3000);
}
.nav__item {
position: relative;
padding-top: 9px;
&:hover:not(.nav__item--current){
&::after{
height: 8px;
}
}
&::after{
content: '';
position: absolute;
width: 100%;
height: 0px;
top: 0;
left: 0;
background: red;
transition: all .3s linear;
}
&.current{
&::after{
background: #1bf;
}
}
}