Invalid InterBase link resource
| From: | Sergey Nikiforov | Date: | Wed, 13 Sep 2000 16:22:59 +0000 |
| Subject: | Invalid InterBase link resource | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-2623@lists.php.net to get a copy of this message | ||
Code:
<?php
$host = "192.168.0.15:php.gdb";
$username = "sergey";
$password = "nik";
$dbh = ibase_connect ($host, $username , $password);
$stmt = 'CREATE TABLE T1 (P1 INTEGER NOT NULL PRIMARY KEY)';
$sth = ibase_query ($dbh, $stmt);
ibase_close ($dbh);
?>
execute:
Warning: 0 is not a valid InterBase link resource in
C:\Inetpub\wwwroot\interBase.php on line 7
Warning: InterBase: invalid database handle (no active connection) in
C:\Inetpub\wwwroot\interBase.php on line 7
----------------
Please tell me what is the reason?
Sergey Nikiforov.