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
927 B
22 lines
927 B
<?php
|
|
|
|
$bdd = new SQLite3('../../database/ticket_panne.db', SQLITE3_OPEN_READWRITE);
|
|
|
|
$stmt = $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)');
|
|
|
|
$stmt->bindValue(':dates', $_POST['dates']);
|
|
$stmt->bindValue(':details', $_POST['details']);
|
|
$stmt->bindValue(':lieu', $_POST['lieu']);
|
|
$stmt->bindValue(':salle', $_POST['salle']);
|
|
$stmt->bindValue(':pos', $_POST['pos']);
|
|
$stmt->bindValue(':materiel', $_POST['materiel']);
|
|
$stmt->bindValue(':marque', $_POST['marque']);
|
|
$stmt->bindValue(':model', $_POST['model']);
|
|
$stmt->bindValue(':nserie', $_POST['nserie']);
|
|
$stmt->bindValue(':demandeur', $_POST['demandeur']);
|
|
$stmt->bindValue(':traitement', 0);
|
|
|
|
$stmt->execute();
|
|
|
|
echo 'Votre ticket à bien été pris en compte';
|
|
?>
|
|
|