Updating file list to remove unused debug files
This commit is contained in:
@@ -18,7 +18,7 @@ SET time_zone = "+00:00";
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `taskmanage`
|
||||
-- Database: `tinyTask`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
$data = json_decode(file_get_contents('php://input'), true);
|
||||
$id = intval($data['id']);
|
||||
$name = trim($data['name']);
|
||||
|
||||
if ($id && $name) {
|
||||
$pdo = new PDO('sqlite:data.db');
|
||||
$stmt = $pdo->prepare('UPDATE projects SET name = ? WHERE id = ?');
|
||||
echo json_encode(['success' => $stmt->execute([$name, $id])]);
|
||||
} else {
|
||||
echo json_encode(['success' => false]);
|
||||
}
|
||||
Reference in New Issue
Block a user