start copy from cimac web

This commit is contained in:
2026-05-14 08:47:13 +02:00
commit dfc6ed40ae
3624 changed files with 899295 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
// Basic example of PHP script to handle with jQuery-Tabledit plug-in.
// Note that is just an example. Should take precautions such as filtering the input data.
//header('Content-Type: application/json');
include('db-connect.php');
$input = filter_input_array(INPUT_POST);
if ($input['action'] === 'edit')
{
$sql = "UPDATE contacts SET idtrf ='" . $input['idtrf'] . "', kindofcontacts='" . $input['kindofcontacts'] . "'" ." , companyname='" . $input['companyname'] . "'" ." WHERE idcontacts='" . $input['id'] . "'";
mysqli_query($con,$sql);
}
if ($input['action'] === 'delete')
{
mysqli_query($con,"DELETE FROM contacts WHERE id='" . $input['id'] . "'");
}
mysqli_close($mysqli);
echo json_encode($input);
?>