Query: ingres_fetch_object
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
INGRES_FETCH_OBJECT(3) 1 INGRES_FETCH_OBJECT(3) ingres_fetch_object - Fetch a row of result into an objectSYNOPSISobject ingres_fetch_object (resource $result, [int $result_type])DESCRIPTIONThis function is similar to ingres_fetch_array(3), with one difference - an object is returned instead of an array. Indirectly, this means that you can access the data only by the field names and not by their offsets (numbers are illegal property names). With regard to speed, the function is identical to ingres_fetch_array(3), and almost as quick as ingres_fetch_row(3) (the difference is insignificant). Note Related Configurations See also the ingres.fetch_buffer_size and ingres.utf8 directives in Runtime Configuration.PARAMETERSo $link - The query result identifier o $result_type - (Optional argument.) $result_type is a constant and can take the following values: INGRES_ASSOC, INGRES_NUM, and INGRES_BOTH.RETURN VALUESReturns an object that corresponds to the fetched row, or FALSE if there are no more rowsEXAMPLESExample #1 Fetch a row into an object <?php $link = ingres_connect($database, $user, $password); $result = ingres_query($link, "select * from table"); while ($row = ingres_fetch_object($result)) { echo $row->user_id; echo $row->fullname; } ?>SEE ALSOingres_query(3), ingres_num_fields(3), ingres_field_name(3), ingres_fetch_array(3), ingres_fetch_assoc(3), ingres_fetch_row(3). PHP Documentation Group INGRES_FETCH_OBJECT(3)
Related Man Pages |
---|
mysql_fetch_array(3) - php |
mysql_fetch_assoc(3) - php |
msql_fetch_object(3) - php |
msql_fetch_row(3) - php |
mysql_fetch_object(3) - php |
Similar Topics in the Unix Linux Community |
---|
unix |
summing numbers in files |
reversing a line |
row Comparison |
In php, Moving a new row to another table and deleting old row |