SQLite3Result::numColumns

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

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

Descrizione

public SQLite3Result::numColumns(): int

Returns the number of columns in the result set.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

Returns the number of columns in the result set.

add a note add a note

User Contributed Notes 1 note

up
-3
jwzumwalt at neatinfo dot com
14 years ago
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]
To Top