Subject | RE: [firebird-php] echo resultin sql |
---|---|
Author | Nigel Weeks |
Post date | 2005-08-11T07:17:11Z |
Yep, I mucked the example. Should be...
>
> // Prepare/Execute Method
> <?php
> $conn = ibase_connect("server:/path/to/db.fdb","sysdba","masterkey");
> $prep = ibase_prepare("SELECT henry, jones FROM BLAH");
> // $prep now contains the resource ID of the prepared
> statement, NOT the
> query string
>
> $rec = ibase_execute($prep);
> // $rec now contains a result set pointer (This had $obj)
>
> $obj = ibase_fetch_object($rec);
> // $obj now contains an object of values from your query
>
> echo $obj->HENRY.$obj->JONES;
> // We just echoed out the contents of the two values
> ?>
>