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

search for in the

sqlite_single_query> <sqlite_rewind
[edit] Last updated: Fri, 17 May 2013

view this page in

sqlite_seek

SQLiteResult->seek

(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0)

sqlite_seek -- SQLiteResult->seekTamponlu bir sonuç kümesinde belli bir satır numarasına gider

Açıklama

bool sqlite_seek ( resource $sonuç , int $satırnum )

Nesne yönelimli kullanım

bool seek ( int $satırnum )

sonuç kümesindeki satırnum satırını geçerli satır haline getirir.

Değiştirgeler

sonuç

SQLite sonuç özkaynağı. Nesne yönelimli kullanımda bu değiştirgeye gerek yoktur.

Bilginize:

Bu işlev tamponsuz sonuç tanıtıcıları ile kullanılamaz.

satırnum

Aranacak satır numarası. Satır numaraları 0'dan başlar.

Bilginize:

Bu işlev tamponsuz sonuç tanıtıcıları ile kullanılamaz.

Dönen Değerler

Belirtilen satır yoksa FALSE varsa TRUE döner.

Ayrıca Bakınız



add a note add a note User Contributed Notes sqlite_seek - [1 notes]
up
0
mina86 at tlen dot pl
9 years ago
I've encoutered strange problem when using sqlite_seek(). When I tried to move the pointer to the first row (#0) I got the fallowing error message: row 0 out of range. The workaround seems to be use of sqlite_rewind(). One can use the fallowing function instead of the original one:

<?php
function sqlite_data_seek($result, $numrow) {
  if (
$numrow==0) {
    return
sql_rewind($result);
  } else {
    return
sql_seek($result, $numrow);
  }
}
?>

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