| View previous topic :: View next topic |
| Author |
Message |
Jezarel
Joined: 29 Apr 2008 Posts: 1
|
Posted: Tue Apr 29, 2008 1:11 pm Post subject: Postgreql conversion |
|
|
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 |
|
| Back to top |
|
 |
|
|
|
|
|
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 You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
PHP Forum :: MySQL Forum :: Java Script Forum
|