From 068d8798c81ebc7200c775587a3fcd808df3597f Mon Sep 17 00:00:00 2001 From: Arionum Date: Mon, 8 Jan 2018 21:15:02 +0200 Subject: [PATCH] pdo --- README.md | 2 +- include/db.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e1c9c0c..898458d 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Arionum (ARO) cryptocurrency node -Requires php 7.2, mysql/mariadb and php-gmp +Requires php 7.2, mysql/mariadb, php-pdo and php-gmp This app should only be run in the main directory of the domain/subdomain, ex: http://111.111.111.111/ diff --git a/include/db.inc.php b/include/db.inc.php index 0bbcb66..9042c07 100755 --- a/include/db.inc.php +++ b/include/db.inc.php @@ -19,7 +19,7 @@ class db extends PDO { parent::__construct($dsn, $user, $passwd, $options); } catch (PDOException $e) { $this->error = $e->getMessage(); - die("Could not connect to the DB"); + die("Could not connect to the DB - ".$this->error); } }