updateCell.php 504 B

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