On Sun, Dec 28, 2008 at 10:41 AM, Michelle Konzack < linux4michelle@xxxxxxxxxxxxxxx> wrote: > Hello, > > I have to code a compatibility layer under PHP5 for PostgreSQl and > MySQL, which mean, I have to code something like db_query() which then > can be used with mysql_query() and pg_query(). OK. i would stop right there and ask yourself why.. there are tons of stable, working solutions out there that already do this, most notably for php5, PDO, http://us.php.net/manual/en/pdo.drivers.php which btw, is written in C ;) -nathan