updateCell.php 535 B

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