Search DaTutorials:  
HOME
Php Tutorials
Articles
Basics
Date and Time
File Manipulations
Forms
Functions
General
Interactivity
MySql
Navigation
News,Shoutboxes and Blogs
Language Structure and Data Types
Searching
Security
String Manipulation
User Information and Stats
Search For a Tutorial
Php Reference

pg_dbname

(PHP 3, PHP 4 , PHP 5)

pg_dbname -- Get the database name

Description

string pg_dbname ( resource connection)

pg_dbname() returns the name of the database that the given PostgreSQL connection resource. It returns FALSE, if connection is not a valid PostgreSQL connection resource.

Example 1. pg_dbname() example

<?php
   error_reporting
(E_ALL);

  
pg_connect("host=localhost port=5432 dbname=mary");
   echo
pg_dbname(); // mary
?>



Copyright © 2001-2004 The PHP Group
All rights reserved.

     Personal Loans | Vegas Hotel | Read this exciting weblog | Secured Loans | Jokes
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp