mysql_field_type(result_id, field_position)
This function returns the type of the specified field (field_position) in the specified result set (result_id).
The function name mysql_fieldtype may also be used, but is deprecated.