Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

fetch_assoc_stmt()

Description

Fetches the results of a prepared statement as an array of associative
arrays such that each stored array is keyed by the result's column names.

Parameters

ColumnTypeDefaultDescription
$stmt \mysqli_stmt
$buffer true
$fetchrows -1
Must stmt have been successfully prepared and executed prior to calling this function
Whether buffer to buffer the result set; if true, results are freed at end of function
The fetchrows maximum numbers of rows to return; results will be truncated if necessary

Return

An array, possibly empty, containing one associative array per result row OR true if there was no result set.

This article was last updated 5th November 2021 11:05 Europe/London time based on the source file dated 31st October 2021 14:15 Europe/London time.