Re: Help accessing Interbase (win) with PHP4
| From: | Jeremy Bettis | Date: | Fri, 27 Jul 2001 14:59:33 +0000 |
| Subject: | Re: Help accessing Interbase (win) with PHP4 | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-10839@lists.php.net to get a copy of this message | ||
Use $dbh = ibase_connect ("database", "user", "password",
"ISO8859_1",
0, 1);
The extra arguments are needed for any interbase < 6.0
--
Jeremy Bettis
jeremy+phpnews@deadbeef.com
"Maxim Pavlov" <maxim@sinor.ru> wrote in message
news:20010727111300.9711.qmail@pb1.pair.com...
> Hello,
>
> I have Interbase 5.5 running on NT box, and the goal is to access it from
> Apache/PHP on Linux box.
> The following code is quite trivial, but in my case it doesn't work. I
found
> many similar posts searching Internet on that, but did not find an answer.
>
> <?
> $dbh = ibase_connect("douglas.akl1.ru:d:\\path\\lyceum.gdb", "user",
> "password");
> $stmt = "SELECT * FROM examen;";
> $sth = ibase_query ($dbh, $stmt); <-- problem is here
> ..
> ibase_close($dbh);
> ?>
>
>
> All it gives is "Warning: InterBase: Dynamic SQL Error SQL error code
= -901
> feature is not supported in /home/maxim/public_html/index.php on line 4"
>
> Please help!
>
> Maxim Pavlov
>
>