PHP 8.5.0 Alpha 4 available for testing

Voting

: five plus three?
(Example: nine)

The Note You're Voting On

potherca at gmail dot com
15 years ago
If result_metadata() returns false but error/errno/sqlstate tells you no error occurred, this means your query is one that does not produce a result set, i.e. an INSERT/UPDATE/DELETE query instead of a SELECT query.

This is stated in the documentation where it says "If a statement passed to mysqli_prepare() is one that produces a result set, mysqli_stmt_result_metadata() returns the result object", but it might not be clear to everyone what this entails exactly.

Hope this helps.

<< Back to user notes page

To Top