maxdb_stmt_fetch stmt->fetch Fetch results from a prepared statement into the bound variables Description Procedural style: boolmaxdb_stmt_fetch resourcestmt Object oriented style (method): stmt boolfetch 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. Return values Return values Value Description &true; Success. Data has been fetched &false; Error occured &null; No more rows/data exists
See also maxdb_prepare, maxdb_stmt_errno, maxdb_stmt_error, maxdb_stmt_bind_result Example Object oriented style 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(); ?> ]]> Procedural style ]]> The above examples would produce the following output: