September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool odbc_fetch_row(resource result, [int row])
Fetches a row of data.
Returns:
TRUE if a row was returned; FALSE if there are no more rows
Description:
Fetches a row of data from the result set that was returned from odbc_exec(). Fetches the next row in the result set unless the row number is specified. odbc_fetch_row() can be used in a loop to traverse a result set. Alternatively, you can specify a row number and then use odbc_fetch_row() without the row number to traverse the result set starting at the specified row.
Version:
Existing since version 3.0.6
Example:
$db = odbc_connect("DSN","user","pass"); $sql = "SELECT ProductName FROM Products"; $result = odbc_exec($db, $sql); while (odbc_fetch_row($result)) ... |
Read now
Unlock full access