|
maxdb_stmt_result_metadatamaxdb_stmt::result_metadataReturns result set metadata from a prepared statement DescriptionProcedural style
resource maxdb_stmt_result_metadata
( resource
$stmt
)Object oriented style
resource maxdb_stmt::result_metadata
( void
)
If a statement passed to maxdb_prepare is one that produces a result set, maxdb_stmt_result_metadata returns the result resource 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 maxdb_free_result
Return Values
maxdb_stmt_result_metadata returns a result resource or Examples
Example #1 Object oriented style
<?php Example #2 Procedural style
<?php The above example will output something similar to: Fieldname: ID See Also
|