Skip to content

Commit

Permalink
comments added
Browse files Browse the repository at this point in the history
line 11
  • Loading branch information
tradesouthwest committed Nov 19, 2015
1 parent 5485fc5 commit 15a2579
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/dbh.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
$db_user = 'XXXXXXXX';
$db_pass = 'XXXXXXXX';

// connect with pdo
// connect with pdo - comment line 11 to mute errors
try {
$dbh = new PDO("mysql:host=$db_host;dbname=$db_name;", $db_user, $db_pass);
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
catch(PDOException $e) {
die('pdo connection error: ' . $e->getMessage());
}
}

0 comments on commit 15a2579

Please sign in to comment.