ifx_num_fields Returns the number of columns in the query php函数


ifx_num_fields

(PHP 4, PHP <=5.2.0)

ifx_num_fieldsReturns the number of columns in the query

说明

int ifx_num_fields ( resource $result_id )

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

参数

result_id

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

返回值

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

范例

Example #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);
?>

参见



相关阅读:
ifx_num_rows Count the rows already fetched from a query
ifx_pconnect Open persistent Informix connection
ifx_prepare Prepare an SQL-statement for execution
ifx_query Send Informix query
ifx_textasvarchar Set the default text mode
ifx_update_blob Updates the content of the blob object
ifx_update_char Updates the content of the char object
ignore_user_abort Set whether a client disconnect should abort script execution
image2wbmp 以 WBMP 格式将图像输出到浏览器或文件
imagealphablending 设定图像的混色模式
imageantialias 是否使用抗锯齿(antialias)功能
imagearc 画椭圆弧
imagechar 水平地画一个字符
imagecharup 垂直地画一个字符
快速导航

Copyright © 2016 phpStudy |