aboutsummaryrefslogtreecommitdiffstats
path: root/public/php
diff options
context:
space:
mode:
Diffstat (limited to 'public/php')
-rw-r--r--public/php/dbCredentials.php1
-rw-r--r--public/php/fia.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/public/php/dbCredentials.php b/public/php/dbCredentials.php
index 87bbfd5..b13e420 100644
--- a/public/php/dbCredentials.php
+++ b/public/php/dbCredentials.php
@@ -2,3 +2,4 @@
$apiKey = "secureApiKey123(!*";
$dbUser = "admin";
$dbPassword = "qwerty123";
+ $dbName = "ClientApps";
diff --git a/public/php/fia.php b/public/php/fia.php
index b9f45f1..94f307f 100644
--- a/public/php/fia.php
+++ b/public/php/fia.php
@@ -8,7 +8,7 @@ require_once "dbCredentials.php";
if ($req->apiKey === $apiKey) {
$http = isset($_SERVER["HTTPS"]) ? "https" : "http";
header("Access-Control-Allow-Origin: $http://localhost:8000");
- $pdo = new PDO("mysql:dbname=ClientApps;host=localhost;charset=utf8mb4", $dbUser, $dbPassword);
+ $pdo = new PDO("mysql:dbname=$dbName;host=localhost;charset=utf8mb4", $dbUser, $dbPassword);
$pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
$stmt = $pdo->prepare($req->query);
try {