downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

SQLite3Result::reset> <SQLite3Result::finalize
[edit] Last updated: Sat, 18 May 2013

view this page in

SQLite3Result::numColumns

(PHP 5 >= 5.3.0)

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

Descrierea

public int SQLite3Result::numColumns ( void )

Returns the number of columns in the result set.

Parametri

Această funcție nu are parametri.

Valorile întoarse

Returns the number of columns in the result set.



add a note add a note User Contributed Notes SQLite3Result::numColumns - [1 notes]
up
-1
jwzumwalt at neatinfo dot com
2 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]

 
show source | credits | sitemap | contact | advertising | mirror sites