add config.php

This commit is contained in:
powji17
2026-06-10 21:06:57 +07:00
parent 3370977289
commit 5b7fe28614
17 changed files with 115 additions and 47 deletions
+2 -1
View File
@@ -10,7 +10,8 @@ if (isset($_SESSION['user'])) {
$error = '';
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$conn = new mysqli("localhost", "root", "", "webgis");
require_once '../config.php';
$conn = getDB();
$username = trim($_POST['username']);
$password = trim($_POST['password']);