Hi Arcadius, If you know Object-oriented programming , you can write a class that includes both MySQL and PostGreSQL functions and you can inherit from that class. Or, you can just stick all mysql, postgresql functions in a functions.php file and include that file to be able to use the functions. I guess it would work best if you have a configuration file where the user chooses either DB and your code uses the corresponding function for that database. I am sure there are database wrapper classes for php to address your issue somewhere on the net , I just don't know where, since i have never searched for it. I will personally email you if i come across any ...
Gurhan -----Original Message----- From: Arcadius A. [mailto:[EMAIL PROTECTED]] Sent: Monday, April 15, 2002 7:56 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Cross DB application Hello ! I'm planning to write a database application for MySQL, and then port it to PostrgeSQL. Is there any library or class that could help me to write/maintain just one source code for both MySQL and PostgreSQL ? Thanks. ARcadius -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php