updateCell.php 514 B

123456789101112131415161718192021
  1. <?php require('auth-validate.php');
  2. $id_user = $_SESSION['id_user'];
  3. $id_file_row = isset($_REQUEST['id_file_row']) ? $_REQUEST['id_file_row'] : null;
  4. $key = isset($_REQUEST['key']) ? $_REQUEST['key'] : null;
  5. $value = isset($_REQUEST['value']) ? $_REQUEST['value'] : null;
  6. $stmt_file = $dbh->prepare(
  7. "INSERT INTO file_row_update (id_file_row, key, value, id_user)
  8. VALUES(:id_file_row, :key, :value, :id_user)";
  9. $stmt_file->execute();
  10. $rows = $stmt_file->fetchAll(PDO::FETCH_ASSOC);
  11. echo 'OK';
  12. ?>