PHP: dbx_fetch_row - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

dbx_query dbx_escape_string

Last updated: Sat, 27 Jan 2007

view this page in

# dbx_fetch_row

(PHP 5 <= 5.0.4)

dbx_fetch_row -- Fetches rows from a query-result that had the `DBX_RESULT_UNBUFFERED` flag set

## Описание

mixed dbx_fetch_row ( object result_identifier )

dbx_fetch_row() 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() 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().

## Список параметров

`result_identifier`

  A result set returned by dbx_query().

## Возвращаемые значения

Returns an object on success that contains the same information as any row would have in the dbx_query() result data property, including columns accessible by index or fieldname when the flags for dbx_query() were set that way.

Upon failure, returns `0` (e.g. when no more rows are available).

## Примеры

Пример 1. How to handle the returned value

`<?php
$result = dbx_query($link, 'SELECT id, parentid, description FROM table', DBX_RESULT_UNBUFFERED);
echo "<table>\n";
while ($row = dbx_fetch_row($result)) {
echo "<tr>\n";
foreach ($row as $field) {
echo "<td>$field</td>";
}
echo "</tr>\n";
}
echo "</table>\n";
?>`

## Смотрите также

dbx_query()

add a note User Contributed Notes
dbx_fetch_row
ed dot stafford over on gmail
09-Nov-2004 02:03
`Use this function ONLY if you are using:
DBX_RESULT_UNBUFFERED
and make sure the database you're using will allow DBX_RESULT_UNBUFFERED as a flag on the connect line.
I spent 2 days trying to figure out WHY I couldn't use the dbx_fetch_row() function. Too many languages!`
add a note
dbx_query dbx_escape_string

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST