Subject | Re: [firebird-php] Connection to FB from PHP |
---|---|
Author | Daniel Urban |
Post date | 2004-05-04T07:28:14Z |
> I've tried to connect to FB from php usingYes, you should
> ibase_connect("localhost","SYSDBA","masterkey")
> but the function return error. Do I have to specify .gdb file in my connection function?
for example:
<?php
$host = 'localhost:/path/to/your.gdb';
$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);
?>
[Non-text portions of this message have been removed]