|
mysqli_stmt::result_metadatamysqli_stmt_result_metadataReturns result set metadata from a prepared statement DescriptionObject-oriented style
public mysqli_resultfalse mysqli_stmt::result_metadata()
Procedural style mysqli_resultfalse mysqli_stmt_result_metadata(mysqli_stmt
$statement)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. This function returns an empty mysqli_result object which can be used to access metadata information from the prepared statement without having to fetch the actual rows of data. There is no need to use this function when using mysqli_stmt_get_result to retrieve the entire result set from a prepared statement as a result object.
Parameters
Return Values
Returns a result object or Errors/Exceptions
If mysqli error reporting is enabled ( ExamplesExample #1 Object-oriented style Example #2 Procedural style See Also
|