Advertisement
Guest User

Untitled

a guest
Nov 12th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. $db_connection = pg_connect("host=localhost dbname=postgres user=postgres password=postgres");
  2.  
  3. if ($db_connection) {
  4.  
  5. echo 'Connection attempt succeeded.';
  6.  
  7. } else {
  8.  
  9. echo 'Connection attempt failed.';
  10.  
  11. }
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement