что не так в коде кроме sql иньекци
Parse error: syntax error, unexpected variable "$name" in D:\OpenServer\domains\localhost\auth\postsignup.php on line 14
<?php
require_once "../db/db.php";
$name = $_POST['name'];
$username = $_POST['username'];
$email = $_POST['email'];
$password = $_POST['password'];
$time = date("Y-m-d H:i:s");
$query = "INSERT INTO `users`(`name`, `username`, `email`, `password`, `reg_date`) VALUES
("$name","$username","$email","$password","$time")";
if(mysqli_query($connect,$query)){
echo "Запрос создан успешно";
}else{
echo "Ошибка: " . $query . "<br>" . mysqli_error($connect);
}
echo "<pre>";
print_r($_POST);
echo "</pre>";
?>