PDOStatement->fetch(PHP 5 >= 5.1.0, PECL pdo:0.1-1.0.3) PDOStatement->fetch — Fetches the next row from a result set Описание
mixed PDOStatement::fetch
([ int $fetch_style
[, int $cursor_orientation
[, int $cursor_offset
]]] )
Fetches a row from a result set associated with a PDOStatement object. The fetch_style parameter determines how PDO returns the row. Список параметров
Возвращаемые значенияThe return value of this function on success depends on the fetch type. In all cases, FALSE is returned on failure. Примеры
Пример #1 Fetching rows using different fetch styles
<?phpРезультат выполнения данного примера:
Пример #2 Fetching rows with a scrollable cursor
<?phpРезультат выполнения данного примера:
|
|
|
| © 2009 Тест скорости интернета | Boont.Ru |