You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
757 B
22 lines
757 B
<?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, traitement) VALUES(:dates, :details, :lieu, :salle, :pos, :materiel, :marque, :model, :nserie, :demandeur, :traitement)');
|
|
|
|
$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'],
|
|
'traitement' => 0
|
|
));
|
|
|
|
echo 'Votre ticket à bien été pris en compte';
|
|
?>
|
|
|