In general, what is the point. I have the code:
<?php if (isset($_POST['login']) && isset($_POST['password']) && isset($_POST['email']) && isset($_POST['phone']) && isset($_POST['token'])){ $login = $_POST['login']; $password = $_POST['password']; $email = $_POST['email']; $phone = $_POST['phone']; $subject = 'тут тема письма'; $message = 'тут текст письма'; $db_host = 'localhost'; $db_user = ''; $db_password = ''; $db_base = ''; $db_table = ''; $mysqli = new mysqli($db_host,$db_user,$db_password, $db_base); if ($mysqli->connect_error) { die('Ошибка : ('. $mysqli->connect_error .') '. $mysqli->connect_error); } $result = $mysqli->query("INSERT INTO ".$db_table." (login,password,email,phone) VALUES ('$login','$password','$email','$phone')"); if ($result == true){ echo 'Информация занесена в базу данных, на указаный вами e-mail был выслат уникальный код, сохраните его, пожалуйста..'; }else{ echo 'Информация не занесена в базу данных. ', $mysqli->error; } } mysqli_close($mysqli); mail($email, $subject, $message) ?> If you write 123 in all fields, then the correct 123 went to the database. And if you write your nickname, password, mail, phone in the fields, then when you enter the database in all the fields except the phone, it costs 0, and in the phone field there are digits Obviously, they do not coincide with those that I put in the field. Help knowledgeable