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