aboutsummaryrefslogtreecommitdiffstats
path: root/php/database.php
diff options
context:
space:
mode:
authoradam <adam@>2021-02-11 19:43:06 +0200
committeradam <adam@>2021-02-11 19:43:06 +0200
commitd538c3041c6c7d05a9328ace960838aa194879d9 (patch)
tree0b070027c9e758ed1783012c43c58070b39595f5 /php/database.php
parentd35678c131d4547cea8b3d9fcc1978dec0d2d903 (diff)
parentf1cd0085cd8dba8b25818fc998d315b28e6c13a5 (diff)
downloadfileup-d538c3041c6c7d05a9328ace960838aa194879d9.tar.gz
setting up
Diffstat (limited to 'php/database.php')
-rw-r--r--php/database.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/php/database.php b/php/database.php
index ef2b825..f472cbf 100644
--- a/php/database.php
+++ b/php/database.php
@@ -16,14 +16,8 @@ require_once "misc.php";
global $database_username;
global $database_password;
global $database_location;
- try
- {
+
$this->pdo=new PDO("mysql:dbname={$database_name};host={$database_location}",$database_username,$database_password);
- }catch(PDOException $e)
- {
- error_log("Could not get database {$database_name} from {$database_location}, {$e} ");
- die("The cow bought the farm");
- }
}
/*returns false if this isn't a user, otherwise returns the user*/