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->columnCount();
?>
SQLite3Result::numColumns
(PHP 5 >= 5.3.0)
SQLite3Result::numColumns — Returns 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.
jwzumwalt at neatinfo dot com
30-Oct-2010 06:33
