ibase_connect

ibase_connect -- Open a connection to an InterBase database

Description

int ibase_connect ( string database [, string username [, string password [, string charset [, int buffers [, int dialect [, string role]]]]]])

דוגמה 1 . ibase_connect( ) example

 
?php

 
$dbh

 
=

 
ibase_connect(

 
$host

 
,

 
$username

 
,

 
$password)

 
;

 
$stmt

 
=

 
'SELECT

 
*

 
FROM

 
tblname'

 
;

 
$sth

 
=

 
ibase_query($dbh

 
,

 
$stmt)

 
;

 
while

 
($row

 
=

 
ibase_fetch_object($sth)

 
)

 
{

 
echo

 
$row

 
-

 
email

 
,

 
"\n"

 
;

 
    }

 
ibase_free_result($sth)

 
;

 
ibase_close($dbh)

 
;

 
?





הערה: buffers was added in PHP 4.0RC2.

הערה: dialect הערה: dialect was added in PHP 4.0RC2. It is functional only with InterBase 6 and versions higher than that .

הערה: role הערה: role was added in PHP 4.0RC2. It is functional only with InterBase 5 and versions higher than that .