11111
maxdb_stmt_fetch
(PECL)maxdb_stmt_fetch
(no version information, might be only in CVS)stmt->fetch -- Fetch results from a prepared statement into the bound variables
Procedural style:bool maxdb_stmt_fetch (resource stmt)
Object oriented style (method):class stmt {
bool fetch (void)
}
- maxdb_stmt_fetch() returns row data using the variables bound by maxdb_stmt_bind_result().
Замечание: Note that all columns must be bound by the application before calling maxdb_stmt_fetch().
Таблица 1. Return values
Value | Description |
---|---|
TRUE | Success. Data has been fetched |
FALSE | Error occured |
NULL | No more rows/data exists |
- maxdb_prepare(), maxdb_stmt_errno(), maxdb_stmt_error(), maxdb_stmt_bind_result()
Пример 2. Procedural style
|
- The above examples would produce the following output:
12203 (Albany) |
maxdb_stmt_execute
maxdb_stmt_free_result 22222