PHP Manual
Prev |  | Next

# ibase_fetch_object

ibase_fetch_object -- Get an object from a InterBase database

## Description

`int ibase_fetch_object`(int result_id);

Fetches a row as a pseudo-object from a `result_id` obtained either by ibase_query() or ibase_execute().

      1
      2 $dbh = ibase_connect ($host, $username, $password);
      3 $stmt = 'SELECT * FROM tblname';
      4 $sth = ibase_query ($dbh, $stmt);
      5 while ($row = ibase_fetch_object ($sth)) {
      6     print $row->email . "\n";
      7 }
      8 ibase_close ($dbh);
      9

See also ibase_fetch_row().

Prev | Home | Next
ibase_fetch_row | Up | ibase_free_result