From: Christopher Schreiber <chris@fast4gl.com>
To: pgsql-php@postgresql.org
Subject: Converting PHP function mysql_data_seek to PostgreSQL
Date: Sun, 18 Nov 2001 00:24:46 -0500
Message-ID: <000201c16ff1$569bff30$9865fea9@jamison1.pa.home.com> (raw)
Hi!
I have this little snipnet of PHP code that calls the mysql_data_seek
function, and I need to convert
it to something similar to work with PostgreSQL. This is used basically to
jump to a specific row
position for an open query. Do I need to define and use a cursor to do this
with Postgres?
function data_seek($pos,$query_id=-1) {
// goes to row $pos
if ($query_id!=-1) {
$this->query_id=$query_id;
}
return mysql_data_seek($this->query_id, $pos);
}
Thanks in advance, any pointers would be helpful.
Chris Schreiber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: chris@fast4gl.com
Subject: Re: Converting PHP function mysql_data_seek to PostgreSQL
In-Reply-To: <000201c16ff1$569bff30$9865fea9@jamison1.pa.home.com>
References: <000201c16ff1$569bff30$9865fea9@jamison1.pa.home.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox