mysql_fetch_lengths(result_id)
This function returns an array containing the lengths of each of the fields in the last-fetched row of the specified result set.