Reformat functions

This commit is contained in:
edsea
2025-10-12 00:07:59 +02:00
parent 414b6c5a3a
commit 0f160833f3
10 changed files with 77 additions and 56 deletions

8
db.php
View File

@@ -1,10 +1,10 @@
<?php
function getConnection() {
$host = '127.0.0.1'; // Force TCP/IP, avoids socket issues
$port = 3306; // XAMPP default port
$host = 'localhost';
$port = 3306;
$db = 'ai_email';
$user = 'root';
$pass = ''; // XAMPP default has no password
$user = 'aimail';
$pass = 'Test123';
$charset = 'utf8mb4';
$dsn = "mysql:host=$host;port=$port;dbname=$db;charset=$charset";