Connecting to InterBase Database.
| From: | Winston Valenzuela | Date: | Thu, 26 Oct 2000 06:45:11 +0000 |
| Subject: | Connecting to InterBase Database. | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-3494@lists.php.net to get a copy of this message | ||
It seems there still some error. here's the content of the script:
<?
$dbh =
ibase_connect("c:\delphi5\projects\Test.gdb","SYSDBA","Ingram");
if (!$dbh) die("Database connection failed!");
$sql = "SELECT * FROM testcgi";
$q = ibase_query($dbh,$sql);
if (!$q) die("No results");
while($row = ibase_fetch_object($q)) {
print $row->USERNAME." ".$row->PASSWD."<br>\n";
//
// Fieldnames should always be upper case!
// That's why the example from php.net will never work.
}
@ibase_close($dbh);
?>
and the error is this:
Warning: InterBase: I/O error for file "C:\DELPHI5\PROJECTS\TEST.GDB" Error
while trying to open file The system cannot find the path specified. in
c:\homepages\access.php on line 2
Database connection failed!