ibase_fetch_object

(PHP3 >= 3.0.7, PHP4 >= 4.0RC1)

ibase_fetch_object -- Get an object from a InterBase database

Description

object 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 <php
  3     $dbh = ibase_connect ($host, $username, $password);
  4     $stmt = 'SELECT * FROM tblname';
  5     $sth = ibase_query ($dbh, $stmt);
  6     while ($row = ibase_fetch_object ($sth)) {
  7         print $row->email . "\n";
  8     }
  9     ibase_close ($dbh);
 10 ?>
 11       

See also ibase_fetch_row().