Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Conexao
- {
- var $conn;
- public static function Abrir()
- {
- try {
- $conn = new PDO
- ("pgsql:dbname=solucoescustom5;user=solucoescustom5;password=v7i6r2z8@;host=postgresql05.solucoescustomizadas.com.br");
- return $conn;
- }catch (PDOException $e)
- {
- //echo ("Não é possível neste momento estabelecer conexão com a base de dados. Tente novamente mais tarde!");
- //exit;
- }
- return null;
- }
- }
- ?>
Add Comment
Please, Sign In to add comment