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

search for in the

sqlite_single_query> <sqlite_rewind
Last updated: Fri, 10 Oct 2008

view this page in

sqlite_seek

(PHP 5, PECL sqlite:1.0-1.0.3)

sqlite_seekSpringe auf eine bestimmte Zeilennummer

Beschreibung

bool sqlite_seek ( resource $Ergebnis , int $Zeilennummer )

sqlite_seek() springt auf die Zeile mit der Zeilennummer . Die Zeilennummerierung beginnt mit Zeile 1. Die Funktion liefert FALSE zurück, wenn die Zeile nicht existiert, ansonsten TRUE.

Hinweis: Diese Funktion kann nicht mit ungebufferten Ergebnissen genutzt werden.

Siehe auch sqlite_next(), sqlite_current() and sqlite_rewind().



add a note add a note User Contributed Notes
sqlite_seek
mina86 at tlen dot pl
12-May-2004 10:17
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);
  }
}
?>

sqlite_single_query> <sqlite_rewind
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites