
Druckansicht von http://www.php-homepage.de/manual/function.mysqli-stmt-bind-result.php
mysqli_stmt_bind_resultstmt->bind_result()(No version information available, might be only in CVS) stmt->bind_result() — Binds variables to a prepared statement for result storage BeschreibungProcedural style:
bool mysqli_stmt_bind_result
( mysqli_stmt $stmt
, mixed &$var1
[, mixed &$...
] )
Object oriented style (method): mysqli_stmt
bool bind_result
( mixed &$var1
[, mixed &$...
] )
Binds columns in the result set to variables. When mysqli_stmt_fetch() is called to fetch data, the MySQL client/server protocol places the data for the bound columns into the specified variables var1, ... .
Parameter Liste
RückgabewerteGibt bei Erfolg TRUE zurück, im Fehlerfall FALSE. BeispieleExample#1 Object oriented style
<?phpExample#2 Procedural style
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
|