English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The odbc_fetch_row() function retrieves a row
bool odbc_fetch_row ( resource $result_id [, int $row_number ] )
It is used to get a row
If there is a line, it returns true, otherwise it displays false
Number | Parameters and Description |
---|---|
1 | result_id It is used to identify the result |
2 | rownumber If the line number is not specified, it will try to get a row from odbc_row_fect(), |
Try the following example
<?php $input_ID = odbc_connect("DSN", "user_id", "pass_id"); $sql = "SELECT ProductName FROM Products"; $result = odbc_exec($input_ID, $sql); while (odbc_fetch_row($result)) { echo odbc_result($result, "ProductName"), "\n"; } ?>