note 42335 deleted from function.sqlite-seek by cmb

From: Date: Mon, 02 Nov 2020 15:03:16 +0000
Subject: note 42335 deleted from function.sqlite-seek by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-215758@lists.php.net to get a copy of this message
Note Submitter: mina86 at tlen dot pl ---- 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); } } ?>

« previous php.notes (#215758) next »