Update 18-09-2024 adding NAS

This commit is contained in:
2024-09-18 11:14:23 +02:00
parent 28a074a7e7
commit 225d1f3531
32 changed files with 5968 additions and 520 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
include('../include/headscript.php');
include("../class/company.php");
$conn = new mysqli($servername, $username, $password, $database);
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$name = $_POST['nameanalysisvoc'];
$refid = $_POST['refid'];
$preferred = $_POST['preferred'];
$query = "INSERT INTO analysisvocabulary (nameanalysisvoc, refid, preferred) VALUES ('$name', $refid, '$preferred')";
if ($conn->query($query)) {
echo json_encode(['success' => true]);
} else {
echo json_encode(['error' => $conn->error]);
}
}