Init Commit

This commit is contained in:
ldy
2025-06-09 14:03:07 +08:00
parent 7d35000dd1
commit 2f40268f53
10 changed files with 451 additions and 0 deletions

19
fetch_config.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
include 'connectDB.php';
$cvId = $_GET['cvId'];
$tableName = $_GET['tableName'];
$sql = "SELECT `$tableName` FROM `config` WHERE `owner` = $cvId";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
echo json_encode($row[$tableName]);
} else {
echo json_encode(null);
}
$conn->close();
?>