BARRAUX Arthur
3 years ago
1 changed files with 0 additions and 20 deletions
@ -1,20 +0,0 @@ |
|||||
<?php |
|
||||
$bdd = new PDO('mysql:host=localhost;dbname=ticket;charset:utf8', 'root', ''); |
|
||||
|
|
||||
$req = $bdd->prepare('INSERT INTO pannes(dates, details, lieu, salle, pos, materiel, marque, model, nserie, demandeur) VALUES(:dates, :details, :lieu, :salle, :pos, :materiel, :marque, :model, :nserie, :demandeur)'); |
|
||||
|
|
||||
$req->execute(array( |
|
||||
'dates' => $_POST['dates'], |
|
||||
'details' => $_POST['details'], |
|
||||
'lieu' => $_POST['lieu'], |
|
||||
'salle' => $_POST['salle'], |
|
||||
'pos' => $_POST['pos'], |
|
||||
'materiel' => $_POST['materiel'], |
|
||||
'marque' => $_POST['marque'], |
|
||||
'model' => $_POST['model'], |
|
||||
'nserie' => $_POST['nserie'], |
|
||||
'demandeur' => $_POST['demandeur'] |
|
||||
)); |
|
||||
|
|
||||
echo 'Votre ticket à bien été pris en compte'; |
|
||||
?> |
|
Loading…
Reference in new issue