Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online

ingres connect function syntax tag tutorial 2013 Donate at flattr Flattr this

Alert! Connect with 10,000 Chating Online. Join Now

Php ingres connect () function

Write your php code

<?php ?>

Php Result

Your code below

(PHP 4 >= 4.0.2, PHP 5)

ingres_connect --  Open a connection to an Ingres II database


resource ingres_connect ( [string database [, string username [, string password]]] )


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

= ingres_connect("mydb", "user", "pass")
        or die(
"Could not connect");
"Connected successfully";

Example 2. ingres_connect() example using default link

("mydb", "user", "pass")
        or die(
"Could not connect");
"Connected successfully";

See also ingres_pconnect() and ingres_close().

Php ingres connect Function syntax tag

ingres connect php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online

Php ingres connect syntax tutorial

php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.

Function index







Date & Time

Directory function




Form data handling

Mathematics operators


Php Mysql

Network Functions


php tutorial guides,functions, classes, code examples and tags for creating simple dynamic site to mysql database driven sites
Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online