PHP. Руководство по PHP. 2005
mysqli_stmt_fetch
mysqli_stmt_fetch
(PHP 5)mysqli_stmt_fetch
(no version information, might be only in CVS)stmt->fetch -- Fetch results from a prepared statement into the bound variables
Description
Procedural style:bool mysqli_stmt_fetch (mysqli_stmt stmt)
Object oriented style (method):class mysqli_stmt {
bool fetch (void)
}
mysqli_stmt_fetch() fetch the result from a prepared statement into the variables bound by mysqli_stmt_bind_result().
Замечание: Note that all columns must be bound by the application before calling mysqli_stmt_fetch().
Возвращаемые значения
Таблица 1. Возвращаемые значения
Value | Description |
---|---|
TRUE | Success. Data has been fetched |
FALSE | Error occured |
NULL | No more rows/data exists or data truncation occurred |
Смотрите также
mysqli_prepare(), mysqli_stmt_errno(), mysqli_stmt_error() и mysqli_stmt_bind_result().
Примеры
Пример 2. Procedural style
|
Результат выполнения данного примера:
Rockford (USA) |
mysqli_stmt_execute
mysqli_stmt_free_result