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

search for in the

SQLite3::querySingle> <SQLite3::prepare
Last updated: Fri, 30 Oct 2009

view this page in

SQLite3::query

(PHP 5 >= 5.3.0)

SQLite3::queryExecutes an SQL query

Beschreibung

public SQLite3Result SQLite3::query ( string $query )

Executes an SQL query, returning an SQLite3Result object if the query returns results.

Parameter-Liste

query

The SQL query to execute.

Rückgabewerte

Returns an SQLite3Result object if the query returns results. Otherwise, returns TRUE if the query succeeded, FALSE on failure.

Beispiele

Beispiel #1 SQLite3::query() example

<?php
$db 
= new SQLite3('mysqlitedb.db');

$results $db->query('SELECT bar FROM foo');
while (
$row $results->fetchArray()) {
    
var_dump($row);
}
?>



add a note add a note User Contributed Notes
SQLite3::query
There are no user contributed notes for this page.

SQLite3::querySingle> <SQLite3::prepare
Last updated: Fri, 30 Oct 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites