formulaire pour remplir des ticket de panne
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.

16 lines
303 B

<?php
$bdd = new PDO('mysql:host=localhost;dbname=ticket;charset:utf8', 'root', '');
try {
$reponse = $bdd->query("SELECT * FROM pannes WHERE ID=" .$_POST['id']);
$line = $reponse -> fetch();
$result = json_encode($line);
print_r($result);
} catch (Exception) {
echo false;
}
?>