<?php
$host = '34.71.207.9';
$port = '5432';
$dbname = 'postgres';
$user = 'accounting';
$password = 'Accounting_2024';

//try {
    $dsn = "pgsql:host=$host;port=$port;dbname=$dbname";
    $pdo = new PDO($dsn, $user, $password, [
        PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
        PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
    ]);
//    echo "Conexión exitosa!";
//} catch (PDOException $e) {
//    echo "Error en la conexión: " . $e->getMessage();
//}
?>
