<?php

 $aconn = new PDO('pgsql:host=127.0.0.1;port=5433;dbname=weinvest', 'postgres', 'admin2018');
 $aconn->exec('SET search_path TO weadmin');

 //$conn = new PDO('pgsql:host=104.248.23.85;port=5432;dbname=charity', 'postgres', 'admin2018');
 //$conn->exec('SET search_path TO charity');

//$servername = "localhost";
//$username = "root";
//$password = "";
//$dbname = "charity";

 //$conn = new PDO("mysql:host=$servername;dbname=$dbname;charset=utf8","$username","$password");
 //$conn ->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

?>