Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test 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.