Re: [phplib] seek-problem From: Arno A. Karner (karner <email protected>)
Date: 07/17/01

best guess would be you did not turn off auto free, and you touched the
last record of results, which then cause the results to be released.

Tom Gitzinger wrote:
>
> Hi there,
>
> I want to run through a set of result records repeatedly. What I do is
> roughly this:
>
> $db -> query(...);
> $db -> next_record();
>
> $startpos = $db -> Row;
> while (condition) {
> ... // just some output
> $db -> next_record();
> }
>
> $db -> seek($startpos); // After that I want to run through another loop
>
> And there I get the error: "seek() failed. Result has records". I've also
> tried $startpos-1 and +1 but the only change was "seek(-1)" failed respectively
> "seek(1)" failed.
>
> Any ideas?
>
> Tom
>
> --
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net
>
> GMX Tipp:
>
> Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
> http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a
>
> --
> Abbestellen mit Mail an: phplib-unsubscribe <email protected>
> Kommandoliste mit Mail an: phplib-help <email protected>

-- 
My opinions are my own and not that of my employer even if I am self
employed

-- Abbestellen mit Mail an: phplib-unsubscribe <email protected> Kommandoliste mit Mail an: phplib-help <email protected>