Openshift PHP PDO Mysql issue
Here I am getting an error which has to do with environment variables and I have found the solution, but I do not know where to put this code at. Please help
below link has the solution, if someone with better insight help me connect to the database in openshift
There is a help section in open shift that talks about this. The link is
At the end it gives the code but is where does it go. Looking at other post in concrete forum I see the place below is the where it should go. But I don't have a clue on how to use it as I don't know php.
If its a simple fix then please help.
Since I am abandoning this one what would the code look like if I were to change PDOconnections.php, just curious.
Here is the code thats need to be input
$dsn = 'mysql:dbname='.DB_NAME.';host='.DB_HOST.';port='.DB_PORT;
$dbh = new PDO($dsn, DB_USER, DB_PASS);