ibase_connect

ibase_connect -- Open a connection to an InterBase database

Description

int ibase_connect(string database, string [username] , string [password] );

Opens a connection to an InterBase database.

Example 1. Ibase_connect() example

  1 
  2 $dbh = ibase_connect ($host, $username, $password);
  3 $stmt = 'SELECT * FROM tblname';
  4 $sth = ibase_query ($dbh, $stmt);
  5 while ($row = ibase_fetch_object ($sth)) {
  6     print $row->email . "\n";
  7 }
  8 ibase_close ($dbh);
  9       

See also: ibase_pconnect().