Re: From MySQL to PostgreSQL

From: Date: Sat, 08 May 2004 09:31:42 +0000
Subject: Re: From MySQL to PostgreSQL
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-34302@lists.php.net to get a copy of this message
"Marcjon Louwersheimer" <marcjon@fastmail.fm> wrote in message news:1083980943.26747.196068112@webmail.messagingengine.com... > Hi. I developed a forum using php5 and mysql. Right now I'm hosting it on > my computer, for version for myself and another for a school I volunteer > at. I would like to move the forums to the school's server. Apperently > they don't have MySQL, they have PostgreSQL. I was just wondering, how > much like MySQL is PostgreSQL? Would it be possible to create general > functions (MySQL style) that could also work for PostgreSQL, based on > what a config file set? Right now I have a file that's specific to each > forum, so I could specify PostgreSQL or MySQL and based on that the > function would do the appropriate action. So how much like MySQL is > PostgreSQL? Hi Marcjon, I can't answer your question regarding the difference of MySQL and PostgreSQL but using a database abstraction layer like PEAR::DB should solve your problem: http://pear.php.net/package/DB Regards, Torsten > -- > Marcjon

« previous php.db (#34302) next »