Function.mysqli-stmt-fetch
Aus PHP-Wiki
Autoversicherung und Kinderzimmer Laura von Pinolino, Lebensversicherung . Leistungen der gesetzlichen Krankenversicherung
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 variablesInhaltsverzeichnis |
Description
Procedural style:
mixed mysqli_stmt_fetch ( object stmt)</BR >
Object oriented style (method):
class stmt {</BR >mixed fetch ( void )
</BR >}
mysqli_stmt_fetch() returns row data using the variables bound by function.mysqli-stmt-bind-result.
Anmerkung: Note that all columns must be bound by the application before calling mysqli_stmt_fetch().
Return values
Tabelle 1. Return values
| Value | Description |
|---|---|
| TRUE | Success. Data has been fetched |
| FALSE | Error occured |
| <TT CLASS="constant" >NULL</TT > | <TD ALIGN="LEFT" VALIGN="MIDDLE" >No more rows/data exists</TD >
Beispiel 1. Object oriented style
|
Beispiel 2. Procedural style
|
The above examples would produce the following output:
Rockford (USA) Tallahassee (USA) Salinas (USA) Santa Clarita (USA) Springfield (USA) |