It is currently Sat Feb 04, 2012 3:40 pm

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Postgreql conversion
PostPosted: Tue Apr 29, 2008 2:11 pm 
Offline

Joined: Tue Apr 29, 2008 2:07 pm
Posts: 1
Hi everyone I recently designed a MYSQL database and used the following function to fetch the row. Unfortunately I have been told that the server is POSTgresql only so I am having to revwerse enjineer the class. I have included the function below and am having trouble finding the alternative for mysql_data_seek. Any held would be greatly appreciated

Code:
function fetch () {
        if ( $row=pg_fetch_array($this->query,PGSQL_ASSOC) ) {
            return $row;
        } else if ( $this->size() > 0 ) {
            mysql_data_seek($this->query,0);
            return false;
        } else {
            return false;
        }
    }


Regards
Joe Cummins


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron