|
Home
iRate! IceMelon IM Tutorials Headlines CoolSites PHP Functions |
|
Most Referenced Functions » google_pagerank() » preg_replace() » imagecreatefrompng() » site_pageranks() » imagepng() » imagedestroy() » imagestring() » imagecolorallocate() » htmlentities() » preg_match() » fopen() » header() » getimagesize() » preg_match_all() » session_start() » htmlspecialchars() » ob_start() » ob_flush() » strstr() » flush() » strpos() » setcookie() » str_replace() » array2vars() » nl2br() » preg_split() » ereg() » ereg_replace() » urlencode() » readgzfile() Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m. |
PHP Functions
Function: ingres_connect (PHP 4 >= 4.0.2, PHP 5) ingres_connect -- Open a connection to an Ingres II databaseDescriptionresource ingres_connect ( [string database [, string username [, string password]]] )Warning This function is EXPERIMENTAL . The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk. Returns a Ingres II link resource on success, or FALSE on failure. ingres_connect() opens a connection with the Ingres database designated by database , which follows the syntax [node_id::]dbname[/svr_class] . If some parameters are missing, ingres_connect() uses the values in php.ini for ingres.default_database , ingres.default_user , and ingres.default_password . The connection is closed when the script ends or when ingres_close() is called on this link. All the other ingres functions use the last opened link as a default, so you need to store the returned value only if you use more than one link at a time.
Example 1. ingres_connect() example
<?php
$link = ingres_connect("mydb", "user", "pass")
or die("Could not connect");
echo "Connected successfully";
ingres_close($link);
?>
Example 2. ingres_connect() example using default link
<?php
ingres_connect("mydb", "user", "pass")
or die("Could not connect");
echo "Connected successfully";
ingres_close();
?>
Related Function(s) |