Re: [PHP-DB] error code = -504 Cursor unknow

2001-04-06 Thread Mauricio Junqueira
Mauricio Junqueira wrote: > Mauricio Junqueira wrote: > >> >> Hello, this is my first attempt to query and print a result coming from a >> database, in this case interbase6. >> >> I got the following error: InterBase: Dynamic SQL Error SQL error code = >> -504 Cursor unknown in maingeral.htm o

Re: [PHP-DB] error code = -504 Cursor unknow

2001-03-27 Thread Mauricio Junqueira
Since ibase_query returns true if the query succeeds I've tried this, but with the same problem with ibase_fetch_row: $stmt = "select count(*) from soldcars"; if ($query= ibase_query($stmt) or die ("alert('" . ibase_errmsg() . "'); ")){ $result = ibase_fetch_row($query); $T

Re: [PHP-DB] error code = -504 Cursor unknow

2001-03-27 Thread Mauricio Junqueira
If just comment the following lines, everything works Please help... I'm getting nut !! alert('" . ibase_errmsg() . "'); "); $stmt = "select count(*) from soldcars"; $query= ibase_query($stmt) or die ("alert('" . ibase_errmsg() . "'); "); // $result = ibase_fetch_row($quer

Re: [PHP-DB] error code = -504 Cursor unknow

2001-03-27 Thread Mauricio Junqueira
Mauricio Junqueira wrote: > > Hello, this is my first attempt to query and print a result coming from a > database, in this case interbase6. > > I got the following error: InterBase: Dynamic SQL Error SQL error code = > -504 Cursor unknown in maingeral.htm on line 8 > > Here's the code: > >