Query: ingres_fetch_row
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
INGRES_FETCH_ROW(3) 1 INGRES_FETCH_ROW(3) ingres_fetch_row - Fetch a row of result into an enumerated arraySYNOPSISarray ingres_fetch_row (resource $result)DESCRIPTIONingres_fetch_row(3) returns an array that corresponds to the fetched row, or FALSE if there are no more rows. Each result column is stored in an array offset, starting at offset 1. Subsequent calls to ingres_fetch_row(3) return the next row in the result set, or FALSE if there are no more rows. By default, arrays created by ingres_fetch_row(3) start from position 1 and not 0 as with other DBMS extensions. The starting position can be adjusted to 0 using the configuration parameter ingres.array_index_start. Note Related Configurations See also the ingres.array_index_start, ingres.fetch_buffer_size and ingres.utf8 directives in Runtime Configuration.PARAMETERSo $result - The query result identifierRETURN VALUESReturns an array that corresponds to the fetched row, or FALSE if there are no more rowsEXAMPLESExample #1 Fetch a row of result into an enumerated array <?php $link = ingres_connect($database, $user, $password); $result = ingres_query($link, "select * from table"); while ($row = ingres_fetch_row($result)) { echo $row[1]; echo $row[2]; } ?>SEE ALSOingres_num_fields(3), ingres_query(3), ingres_fetch_array(3), ingres_fetch_assoc(3), ingres_fetch_object(3). PHP Documentation Group INGRES_FETCH_ROW(3)
Related Man Pages |
---|
ingres_execute(3) - php |
ingres_fetch_assoc(3) - php |
ingres_field_precision(3) - php |
ingres_field_scale(3) - php |
ingres_result_seek(3) - php |