Received: from post2.fast.net (post2.fast.net [209.92.1.22]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fAI5Pnm35566 for ; Sun, 18 Nov 2001 00:25:50 -0500 (EST) (envelope-from chris@fast4gl.com) Received: from cn617438a (maxtnt04-540.abepa.fast.net [209.92.15.32]) by post2.fast.net (8.11.2/8.9.3) with SMTP id fAI5PpT27579 for ; Sun, 18 Nov 2001 00:25:52 -0500 (EST) Reply-To: From: "Christopher Schreiber" To: 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> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Archive-Number: 200111/123 X-Sequence-Number: 764 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