|
@@ -1,8 +1,6 @@
|
|
|
-<?php
|
|
|
|
|
|
|
+<?php require('auth-validate.php');
|
|
|
|
|
|
|
|
-require('auth-validate.php');
|
|
|
|
|
-
|
|
|
|
|
-$id_user =
|
|
|
|
|
|
|
+$id_user = $_SESSION['id_user'];
|
|
|
|
|
|
|
|
$id_file_row = isset($_REQUEST['id_file_row']) ? $_REQUEST['id_file_row'] : null;
|
|
$id_file_row = isset($_REQUEST['id_file_row']) ? $_REQUEST['id_file_row'] : null;
|
|
|
$key = isset($_REQUEST['key']) ? $_REQUEST['key'] : null;
|
|
$key = isset($_REQUEST['key']) ? $_REQUEST['key'] : null;
|
|
@@ -11,9 +9,7 @@ $value = isset($_REQUEST['value']) ? $_REQUEST['value'] : null;
|
|
|
|
|
|
|
|
$stmt_file = $dbh->prepare(
|
|
$stmt_file = $dbh->prepare(
|
|
|
"INSERT INTO file_row_update (id_file_row, key, value, id_user)
|
|
"INSERT INTO file_row_update (id_file_row, key, value, id_user)
|
|
|
- VALUES()
|
|
|
|
|
- id_company, name, description
|
|
|
|
|
- FROM company");
|
|
|
|
|
|
|
+ VALUES(:id_file_row, :key, :value, :id_user)";
|
|
|
|
|
|
|
|
$stmt_file->execute();
|
|
$stmt_file->execute();
|
|
|
|
|
|