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().


<php
    $dbh = ibase_connect ($host, $username, $password);
    $stmt = 'SELECT * FROM tblname';
    $sth = ibase_query ($dbh, $stmt);
    while ($row = ibase_fetch_object ($sth)) {
        print $row->email . "\n";
    }
    ibase_close ($dbh);
?>
      

See also ibase_fetch_row().


Hosted by Tonec Inc.