ibase_connect example.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@20669 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Sterling Hughes 2000-02-28 13:50:38 +00:00
parent 2e166c0236
commit 68fff9b3fa

View file

@ -16,6 +16,32 @@
<title>Description</title>
<funcsynopsis>
<funcdef>int <function>ibase_connect</function></funcdef>
<paramdef> <parameter>string database</parameter></paramdef>
<paramdef> <optional> string username
<optional> string password </optional>
</optional>
</paramdef>
<parameter>
</funcsynopsis>
<para>
Opens a connection to an Interbase database.
<example>
<title><function>ibase_connect</function> example</title>
<programlisting role="php">
$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);
</programlisting>
</example>
</para>
<para>
See also: <function>ibase_pconnect</function>.
</para>
=======
<paramdef>string <parameter>database</parameter></paramdef>
<paramdef>string <parameter><optional>username</optional></parameter></paramdef>
<paramdef>string <parameter><optional>password</optional></parameter></paramdef>
@ -26,6 +52,7 @@
<para>
See also: <function>ibase_pconnect</function>.
</para>
>>>>>>> 1.5
</refsect1>
</refentry>