note 42335 added to function.sqlite-seek

From: Date: Wed, 12 May 2004 14:17:03 +0000
Subject: note 42335 added to function.sqlite-seek
Groups: php.notes 
Request: Send a blank email to php-notes+get-69525@lists.php.net to get a copy of this message
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); } } ?> ---- Manual Page -- http://www.php.net/manual/en/function.sqlite-seek.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42335 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42335&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42335&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#69525) next »