Re: Invalid InterBase link resource
| From: | Sergey Nikiforov | Date: | Wed, 13 Sep 2000 17:22:31 +0000 |
| Subject: | Re: Invalid InterBase link resource | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-2628@lists.php.net to get a copy of this message | ||
By the way this works:
<?php
$host = "192.168.0.15:php.gdb";
$username = "sergey";
$password = "nik";
$dbh = ibase_connect ($host, $username , $password);
$query = ibase_prepare("CREATE TABLE T2 (P1 INTEGER NOT NULL PRIMARY
KEY)");
ibase_execute($query);
ibase_close ($dbh);
?>
Sergey Nikiforov wrote:
> 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.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net