September 2001
Intermediate to advanced
768 pages
32h 45m
English
array mysql_fetch_lengths(mysql result result_handle) Gets the length of each field in a row.
Returns:
Array of integers; FALSE on error
Description:
mysql_fetch_lengths() fetches the length of each field for the last row of data retrieved by mysql_fetch_array(), mysql_fetch_assoc(), mysql_fetch_object(),or mysql_fetch_row(). The length information is returned in a numerically keyed array.
Version:
PHP 3+, PHP 4+
See also:
To find the number of fields in a result set:
mysql_num_fields()
To find the number of rows in a result set:
mysql_num_rows()
Example:
<pre> <?php // Included code that connects to a MySQL server and sets a default database // See ... |
Read now
Unlock full access