ifx_num_fields Returns the number of columns in the query Description intifx_num_fields intresult_id Returns the number of columns in query for result_id or &false; on error After preparing or executing a query, this call gives you the number of columns in the query.