Fixed DB constants issue with absolute paths

This commit is contained in:
overplayed 2025-03-15 19:06:22 -04:00
parent 2d697b512d
commit 5fcc4d0e74
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
<?php <?php
session_start(); session_start();
require_once "db.php"; require_once __DIR__ . "/db.php";
header("Content-Type: application/json"); header("Content-Type: application/json");

View File

@ -1,6 +1,7 @@
<?php <?php
session_start(); session_start();
require_once "db.php"; // Ensure you have a DB connection file require_once __DIR__ . "/db.php";
// Ensure you have a DB connection file
header("Content-Type: application/json"); header("Content-Type: application/json");