Re: Invalid InterBase link resource
| From: | Sergey Nikiforov | Date: | Wed, 13 Sep 2000 16:37:44 +0000 |
| Subject: | Re: Invalid InterBase link resource | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-2627@lists.php.net to get a copy of this message | ||
No my PHP does not support function ibase_select_db. Actually, $host includes
database name.
afan wrote:
> Maybe solution will be: after
>
> > $dbh = ibase_connect ($host, $username , $password);
>
> put:
>
> ibase_select_db("name_of_database", $dbh);
>
> and then:
>
> > $stmt = 'CREATE TABLE T1 (P1 INTEGER NOT NULL PRIMARY KEY)';
>
> Afan
>
> ----- Original Message -----
> From: "Sergey Nikiforov" <sergey@pcsrevenuecontrol.com>
> To: <php-windows@lists.php.net>
> Sent: Wednesday, September 13, 2000 9:22 AM
> Subject: [PHP-WIN] Invalid InterBase link resource
>
> > 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
> >
>
> --
> 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