Subject Re: [firebird-php] ibase_query(): Dynamic SQL Error SQL error code = -901
Author Lester Caine
remusbm_2003 wrote:

> I have the following code:
>
> <?php
> $host = 'localhost:/C:/Program Files/Firebird/Firebird_1_5/
> examples/EMPLOYEE.FDB';
> $dbh = ibase_connect($host,"sysdba","masterkey");
> echo $dbh;
> $stmt = "SELECT * FROM country";
> $sth = ibase_query($stmt);
> while ($row = ibase_fetch_object($sth)) {
> echo $row->country, "\n";
> }
> ibase_free_result($sth);
> ibase_close($dbh);
> ?>
>
> and the following error
>
> Warning: ibase_query(): Dynamic SQL Error SQL error code = -901
> feature is not supported
>
> Can anyone help me to find where is the problem?

http://uk.php.net/ibase_query
ibase_query($dbh, $stmt)

--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
Treasurer - Firebird Foundation Inc.