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.
 
 
 
 
 

15 lines
529 B

<?php
$decode = json_decode($_POST['value'], TRUE);
$bdd = new SQLite3('../../database/ticket_panne.db', SQLITE3_OPEN_READWRITE);
$stmt = $bdd->prepare('UPDATE `logins` SET `pwd` = :pwd WHERE `login` = :login');
$stmt->bindValue(':pwd', $decode['pwd']);
$stmt->bindValue(':login', $decode['login']);
$stmt->execute();
$select = $bdd->prepare("SELECT * FROM `logins` WHERE `login` = :login");
$select->bindValue(':login', $decode['login']);
$traitement = $select->execute();
print_r(json_encode($traitement->fetchArray()));
?>