1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
$req = $bdd->prepare('INSERT INTO utilisateur(Email, Motdepasse, Prenom, Nom, Telephone, Commune, Rue, NumeroRue, Etage, Appartement, Digicode, InformationsSupplementaires, DateInscription, Actif)
VALUES(:Email, :Motdepasse, :Prenom, :Nom, :Telephone, :Commune, :Rue, :NumeroRue, :Etage, :Appartement, :Digicode, :InformationsSupplementaires, :DateInscription, :Actif)');
$req->execute(array(
'Email' => $_POST['fm_emaila'],
'Motdepasse' => md5($_POST['fm_password1']),
'Prenom'=> $_POST['fm_prenom'],
'Nom' => $_POST['fm_nom'],
'Telephone' => $_POST['fm_telephone'],
'Commune' => $_POST['fm_commune'],
'Rue' => $_POST['fm_rue'],
'NumeroRue' => $_POST['fm_nrue'],
'Etage' => $_POST['fm_etage'],
'Appartement' => $_POST['fm_appartement'],
'Digicode' => $_POST['fm_digicode'],
'InformationsSupplementaires' => $_POST['fm_infossupp'],
'DateInscription' => date('Y-m-d G:i:s'),
'Actif' => 0)); |
Partager