maxdb_stmt_fetch
maxdb_stmt::fetch
Fetch results from a prepared statement into the bound variables
&reftitle.description;
&style.procedural;
boolmaxdb_stmt_fetch
resourcestmt
&style.oop;
boolmaxdb_stmt::fetch
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.
&reftitle.returnvalues;
Return values
Value
Description
&true;
Success. Data has been fetched
&false;
Error occurred
&null;
No more rows/data exists
&reftitle.examples;
&style.oop;
prepare($query)) {
/* execute statement */
$stmt->execute();
/* bind result variables */
$stmt->bind_result($name, $code);
/* fetch values */
while ($stmt->fetch()) {
printf ("%s (%s)\n", $name, $code);
}
/* close statement */
$stmt->close();
}
/* close connection */
$maxdb->close();
?>
]]>
&style.procedural;
]]>
&example.outputs.similar;
&reftitle.seealso;
maxdb_prepare
maxdb_stmt_errno
maxdb_stmt_error
maxdb_stmt_bind_result