Jump to content

Fru_Anthony

New Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Fru_Anthony

  1. <?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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.