Converting PHP function mysql_data_seek to PostgreSQL - Mailing list pgsql-php

From Christopher Schreiber
Subject Converting PHP function mysql_data_seek to PostgreSQL
Date
Msg-id 000201c16ff1$569bff30$9865fea9@jamison1.pa.home.com
Whole thread Raw
List pgsql-php
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


pgsql-php by date:

Previous
From: "Mike Rogers"
Date:
Subject: Re: [BUGS] [HACKERS] [PG MAIL LISTS] SEND OUT ALL????
Next
From: "Dan Wilson"
Date:
Subject: Re: Converting PHP function mysql_data_seek to PostgreSQL