mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
2e166c0236
commit
68fff9b3fa
1 changed files with 27 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue