文字

SQLite3Result::numColumns

(PHP 5 >= 5.3.0)

SQLite3Result::numColumnsReturns the number of columns in the result set

说明

public int SQLite3Result::numColumns ( void )

Returns the number of columns in the result set.

参数

此函数没有参数。

返回值

Returns the number of columns in the result set.

用户评论:

[#1] jwzumwalt at neatinfo dot com [2010-10-30 18:33:51]

Here is an example:

<?php
   $query 
"SELECT * FROM 't1' ";
   
$result $db->query($query) or die("Error in query: <span style='color:red;'>$query</span>");
   
$num_columns =  $result->numColumns();
?>


[Edited by: googleguy@php.net]

上一篇: 下一篇: