From 68fff9b3faed7b91aac8f6071b8b72a5c12469d8 Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Mon, 28 Feb 2000 13:50:38 +0000 Subject: [PATCH] ibase_connect example. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@20669 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/ibase.xml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/functions/ibase.xml b/functions/ibase.xml index ceeaaf472c..79546034c6 100644 --- a/functions/ibase.xml +++ b/functions/ibase.xml @@ -16,6 +16,32 @@ Description int ibase_connect + string database + string username + string password + + + + + + Opens a connection to an Interbase database. + + <function>ibase_connect</function> example + +$dbh = ibase_connect($host, $username, $password); +$stmt = 'SELECT * FROM tblname'; +$sth = ibase_query($dbh, $stmt); +while ( $row = ibase_fetch_object($sth) ) { + print $row->name . "\n"; +} +ibase_close($dbh); + + + + + See also: ibase_pconnect. + +======= string database string username string password @@ -26,6 +52,7 @@ See also: ibase_pconnect. +>>>>>>> 1.5