Subject Re: [firebird-php] Problems conecting to Firebird 1.5 with PHP in RedHat 9
Author Dariusz Zelichowski
I had exactly the same problem with FB 1.03 and PHP 4 under
Windows 2000 Server. ReferencING of fields by their index
won't work but referring to them by field name works OK, so
I just settled for that.

So you may try changing your code to:

while ($fila = ibase_fetch_row($resultado)) {
echo $fila->FIELDNAME1.' '.$fila->FIELDNAME2.'<br />';




> <?
>
> // Script: listar.php
>
> $host = "localhost:/opt/firebird/examples/employee.fdb";
> $usuario = "sysdba";
> $password = "masterkey";
> $conexion = ibase_connect($host,$usuario,$password);
> $sql = "select * from country";
> $resultado = ibase_query($sql);
> while ($fila = ibase_fetch_row($resultado)) {
> echo $fila[0].' '.$fila[1].'<br />';
> }
>
> ?>
>
>
>
> But nothing happens. None messages of errors.
>
>
> With "isql" I connect to same DataBase without problems.
>
>
> Please help me !!!
>
>
> *** Sorry about my english, I'm from BOLIVIA ****
>
> __________________________________________
>
> Julio Carlos Canaviri C.
> e-mail : e18278@...
> Linux Registered User #306526
> _____________________________________
>
>
>





__________________________________
Do you Yahoo!?
Yahoo! Domains � Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer