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, 19 Mar 2010

view this page in

SQLite3::query

(PHP 5 >= 5.3.0)

SQLite3::queryBir SQL sorgusu çalıştırır

Açıklama

public SQLite3Result SQLite3::query ( string $sorgu )

Bir SQL sorgusu çalıştırır ve sonucu bir SQLite3Result nesnesi olarak döndürür.

Değiştirgeler

sorgu

Çalıştırılacak SQL sorgusu.

Dönen Değerler

Sorgu sonuç döndürürse bir SQLite3Result nesnesi, başarılı olur ancak sonuç döndürmezse TRUE aksi takdirde FALSE döner.

Örnekler

Örnek 1 - SQLite3::query() örneği

<?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, 19 Mar 2010
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites