Advertisement
Guest User

Untitled

a guest
Aug 16th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. <?php
  2. if(!@($conexao=pg_connect ("host=localhost dbname=test port=5432 user=test password=test123"))) {
  3. print "Não foi possível estabelecer uma conexão com o banco de dados.";
  4. } else {
  5. pg_close ($conexao);
  6. print "Conexão OK!";
  7. }
  8. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement