Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //$db = pg_pconnect( "host=localhost user=postgres password=123 port=5432 dbname=supershop");
- $db = pg_pconnect( "host=localhost user=postgres port=5432 dbname=shop");
- if( !$db )
- die( 'Something bad happened!' );
- function checkresult( $result )
- {
- echo pg_last_error($db);
- if ( !$result )
- {
- echo "Error.\n";
- exit;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement