Query: dbx_fetch_row
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
DBX_FETCH_ROW(3) 1 DBX_FETCH_ROW(3) dbx_fetch_row - Fetches rows from a query-result that had the DBX_RESULT_UNBUFFEREDflag setSYNOPSISmixed dbx_fetch_row (object $result_identifier)DESCRIPTIONdbx_fetch_row(3) fetches rows from a result identifier that had the DBX_RESULT_UNBUFFERED flag set. When the DBX_RESULT_UNBUFFERED is not set in the query, dbx_fetch_row(3) will fail as all rows have already been fetched into the results data property. As a side effect, the rows property of the query-result object is incremented for each successful call to dbx_fetch_row(3).PARAMETERSo $result_identifier - A result set returned by dbx_query(3).RETURN VALUESReturns an object on success that contains the same information as any row would have in the dbx_query(3) result data property, including columns accessible by index or fieldname when the flags for dbx_query(3) were set that way. Upon failure, returns 0 (e.g. when no more rows are available).EXAMPLESExample #1 How to handle the returned value <?php $result = dbx_query($link, 'SELECT id, parentid, description FROM table', DBX_RESULT_UNBUFFERED); echo "<table> "; while ($row = dbx_fetch_row($result)) { echo "<tr> "; foreach ($row as $field) { echo "<td>$field</td>"; } echo "</tr> "; } echo "</table> "; ?>SEE ALSOdbx_query(3). PHP Documentation Group DBX_FETCH_ROW(3)
Related Man Pages |
---|
dbx_escape_string(3) - php |
mssql_fetch_row(3) - php |
mssql_field_seek(3) - php |
pg_num_rows(3) - php |
sqlsrv_next_result(3) - php |