phpcompta-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-support] Re: [Phpcompta-contrib] MySQL au lieu de PostgreSQL


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
}





reply via email to

[Prev in Thread] Current Thread [Next in Thread]