|
From: | herve couvelard |
Subject: | [Phpcompta-support] Re: [Phpcompta-contrib] MySQL au lieu de PostgreSQL |
Date: | Mon, 31 Jan 2005 12:48:05 +0100 |
User-agent: | Mozilla Thunderbird 0.7.1 (X11/20040626) |
utilise un fichier SQL.php, qui contient toutes ces fonctions, avec mafonction() if(db=="mysql") { return mysql.mafonction(); } else if (db="postgres") { return postgres.mafonction(); } else { erreur("badaboum"); }) --> en ce qui me concerne, je vois pas le problème!!!!!
non ce n'est pas comme cela (on a un if inutile) c'est en gros include('/where_include/'.$DB.'/fichier.sql.php'); et dans /pgsql/fichier.sql.php : mafonction(){ //ici du codes pgsql } et dans /mysql/fichier.sql.php : mafonction(){ //ici du codes mysql }
[Prev in Thread] | Current Thread | [Next in Thread] |