<?php
$user=htmlspecialchars($_POST['user']);
$password=htmlspecialchars($_POST['password']);
$email=htmlspecialchars($_POST['email']);
//$number=htmlspecialchars($_POST['number']);
$quater=htmlspecialchars($_POST['quater']);
if (isset($user) && isset($password)&& isset($email ) && isset($quater ))
{
try{
$bdd = new PDO('mysql:host=localhost;dbname=library;charset=utf8', 'root', '');
}
catch(Exception $e)
{
die('Erreur : '.$e->getMessage());
}
eq = $bdd->prepare('INSERT INTO user (name, password, email, quater) VALUES (?, ?, ?, ?)');
$req->execute(array($user, $password, $email, $quater));
}
else
{
echo "<p color=red >please fill all the fills above<p>";
}
?>
<form