mysql_field_len
int mysql_field_len(mysql result result_handle, int field_offset)
result_handle | Result handle returned by mysql_db_query() or mysql_query() |
field_offset | Field offset to use |
Gets the maximum length of the specified column in a result set.
Returns:
Integer; FALSE on error
Description:
mysql_field_len() reports the maximum length of the specified field in a result set returned by mysql_db_query() or mysql_query(). The field_offset argument specifies the desired column. The field offset starts at 0.
For BLOB, CHARACTER, DATE, ENUM, and NUMERIC field types, the number returned is the maximum number of bytes that can occupy a field. For SET type columns, the length of the column is equivalent to each element in the SET column ...
Get PHP Functions Essential Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.