Re: note 34406 modified in function.mysql-data-seek by andrey

From: Date: Tue, 27 Jan 2004 15:50:39 +0000
Subject: Re: note 34406 modified in function.mysql-data-seek by andrey
References: 1 2 3  Groups: php.notes 
Request: Send a blank email to php-notes+get-64256@lists.php.net to get a copy of this message
I was bogus, it is not bogus. It just clarifies another note, and there is an solution in a ththird note. Andrey Quoting Mehdi Achour <didou@keliglia.com>: > andrey@php.net wrote: > > With reference to bobby dot jack at excite dot com's comment: > > > > PHP actually gives a warning, not an error, that looks like: > > > > mysql_data_seek(): Offset 0 is invalid for MySQL result index X in > (file) Y on line Z. > > > > [EDITOR's NOTE > > The version of the mysql extension is quite old, nevertheless 0 is a valid > offset even in this version. It's probably an user error. The check condition > is : > > if ((*offset)->value.lval<0 || > (*offset)->value.lval>=(int)mysql_num_rows(mysql_result)) { > > > > If the query has returned a 0 rows result set, it's a script error to try > to seek to row 0. > > > > So this note is bogus. > > > So simply delete it :) > > didou >

« previous php.notes (#64256) next »