Manual do PHP
Anterior |  | Próxima

# ifx_num_fields

(PHP 3 >= 3.0.3, PHP 4, PHP 5)

ifx_num_fields -- Returns the number of columns in the query

## Descrição

int ifx_num_fields ( resource result_id )

After preparing or executing a query, this call gives you the number of columns in the query.

## Parâmetros

`result_id`

  `result_id` is a valid resultid returned by ifx_query() or ifx_prepare() (select type queries only!).

## Valores de retornado

Returns the number of columns in query for `result_id`, or `FALSE` on errors.

## Exemplos

Exemplo 1. ifx_num_fields() Example

`<?php $conn_id = ifx_connect("db", "user", "password"); $res_id = ifx_query("select * from systables", $conn_id); echo ifx_num_fields($res_id); ?>`

## Veja também

ifx_num_rows()

Anterior | Principal | Próxima
ifx_nullformat | Acima | ifx_num_rows