|
mysqli_stmt::result_metadatamysqli_stmt_result_metadataReturns result set metadata from a prepared statement DescriptionObject oriented style
mysqli_result mysqli_stmt::result_metadata
( void
)
Procedural style
mysqli_result mysqli_stmt_result_metadata
( mysqli_stmt
$stmt
)If a statement passed to mysqli_prepare is one that produces a result set, mysqli_stmt_result_metadata returns the result object that can be used to process the meta information such as total number of fields and individual field information.
The result set structure should be freed when you are done with it, which you can do by passing it to mysqli_free_result
Parameters
Return Values
Returns a result object or ExamplesExample #1 Object oriented style
<?php Example #2 Procedural style
<?php See Also
|