норм все было
<?php
$famaly = filter_var(trim ($_POST['famaly']),
FILTER_SANITIZE_STRING);
$name = filter_var(trim ($_POST['name']),
FILTER_SANITIZE_STRING);
$phone_number = filter_var(trim ($_POST['phone_number']),
FILTER_SANITIZE_STRING);
$instagram = filter_var(trim ($_POST['instagram']),
FILTER_SANITIZE_STRING);
$city = filter_var(trim ($_POST['city']),
FILTER_SANITIZE_STRING);
$login = filter_var(trim ($_POST['login']),
FILTER_SANITIZE_STRING);
$password = filter_var(trim ($_POST['password']),
FILTER_SANITIZE_STRING);
$password = md5($password);
$mysql->query("INSERT INTO `user_party` (`famaly`, `name`, `phone_number`, `instagram`, `city`, `login`, `password`) VALUES ('$famaly', '$name', '$phone_number', '$instagram', '$city', '$login', '$password')");
$mysql->close();
header('location: /');
?>
Там где mysql connect
Обсуждают сегодня