⇧
vadnica-logo
My Services About the Project Telegram O meni O meni

mysqli_stmt_store_result()

The mysqli_stmt_store_result() function transfers the complete result set from the MySQL server into the local memory of the PHP script. This is essential if you want to count rows or seek through results after executing a prepared statement.

EXAMPLE
RESULT
The result will be displayed here...

Practical use: If you are using a SELECT query with prepared statements and want to find out the number of rows using the mysqli_stmt_num_rows() function, you must call mysqli_stmt_store_result() beforehand.