odbc_fetch_row
(PHP 4, PHP 5)
odbc_fetch_row — Fetch a row
Описание
$result_id
[, int $row_number
] )Fetches a row of the data that was returned by odbc_do() or odbc_exec(). After odbc_fetch_row() is called, the fields of that row can be accessed with odbc_result().
Список параметров
-
result_id
-
The result identifier.
-
row_number
-
If
row_number
is not specified, odbc_fetch_row() will try to fetch the next row in the result set. Calls to odbc_fetch_row() with and withoutrow_number
can be mixed.To step through the result more than once, you can call odbc_fetch_row() with
row_number
1, and then continue doing odbc_fetch_row() withoutrow_number
to review the result. If a driver doesn't support fetching rows by number, therow_number
parameter is ignored.
Возвращаемые значения
Returns TRUE
if there was a row, FALSE
otherwise.
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения для работы с базами данных
- Уровни абстракции
- ODBC (Unified)
- odbc_autocommit
- odbc_binmode
- odbc_close_all
- odbc_close
- odbc_columnprivileges
- odbc_columns
- odbc_commit
- odbc_connect
- odbc_cursor
- odbc_data_source
- odbc_do
- odbc_error
- odbc_errormsg
- odbc_exec
- odbc_execute
- odbc_fetch_array
- odbc_fetch_into
- odbc_fetch_object
- odbc_fetch_row
- odbc_field_len
- odbc_field_name
- odbc_field_num
- odbc_field_precision
- odbc_field_scale
- odbc_field_type
- odbc_foreignkeys
- odbc_free_result
- odbc_gettypeinfo
- odbc_longreadlen
- odbc_next_result
- odbc_num_fields
- odbc_num_rows
- odbc_pconnect
- odbc_prepare
- odbc_primarykeys
- odbc_procedurecolumns
- odbc_procedures
- odbc_result_all
- odbc_result
- odbc_rollback
- odbc_setoption
- odbc_specialcolumns
- odbc_statistics
- odbc_tableprivileges
- odbc_tables
Коментарии
When I migrates from 4 to 5 took me a long day to find the solution.
The way to use it without problems
In php4:
<?php
while (odbc_fetch_row($stringsql)) {
// ...
}
?>
In php5:
<?php
odbc_fetch_row($stringsql, 0);
while (odbc_fetch_row($stringsql)) {
// ...
}
?>
Good luck