Reformat functions
This commit is contained in:
8
db.php
8
db.php
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user