Skip to content

Commit

Permalink
Fixed connection for phpfog.
Browse files Browse the repository at this point in the history
  • Loading branch information
stevedufresne committed Aug 11, 2012
1 parent 8b580ea commit 29837bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions includes/db.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
*/


$user = getenv('DB_USER');
$pass = getenv('DB_PASS');
$data_source = getenv('DATA_SOURCE');
$user = getenv('MYSQL_USERNAME');
$pass = getenv('MYSQL_PASSWORD');

//$data_source = 'mysql:host=' . getenv('MYSQL_DB_HOST') . ';dbname=' . getenv('MYSQL_DB_NAME').'';

$data_source = 'mysql:host=' . getenv('MYSQL_DB_HOST') . ';dbname=' . getenv('MYSQL_DB_NAME').'';
//PDO -> php data objects
$db = new PDO($data_source, $user, $pass);
//Make the connection to speak in UTF 8 - don't expect anything back
Expand Down

0 comments on commit 29837bc

Please sign in to comment.