Primer Commit
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
$host = '92.204.136.83';
|
||||
$db = 'hmngyportal_facturacion';
|
||||
$user = 'hmngyportal_facturacion';
|
||||
$pass = 'hmngyportal_facturacion';
|
||||
|
||||
$dsn = "mysql:host=$host;dbname=$db;charset=utf8mb4";
|
||||
|
||||
$options = [
|
||||
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
|
||||
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
|
||||
PDO::ATTR_EMULATE_PREPARES => false,
|
||||
];
|
||||
|
||||
try {
|
||||
$pdo = new PDO($dsn, $user, $pass, $options);
|
||||
} catch (\PDOException $e) {
|
||||
die('Error de conexión a la base de datos: ' . $e->getMessage());
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user