Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $db_connection = pg_connect("host=localhost dbname=postgres user=postgres password=postgres");
- if ($db_connection) {
- echo 'Connection attempt succeeded.';
- } else {
- echo 'Connection attempt failed.';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement