phpcompta-contrib
[Top][All Lists]
Advanced

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

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


From: Dany De Bontridder
Subject: Fw: [Phpcompta-support] Re: [Phpcompta-contrib] MySQL au lieu de PostgreSQL
Date: Mon, 31 Jan 2005 14:51:45 +0100

On Mon, 31 Jan 2005 12:48:05 +0100
herve couvelard wrote:

> 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
> }
Oui au fait, il ne faut pas arriver à la situation où  MySql
fonctionne mais plus psql, ce serait très embêtant :-( 

Au fait, les fonctions commencent toujours par le même entête:

/* function nom_de_la_fonction
 **************************************************
 * Purpose : A quoi ça sert 
 *        
 * parm : 
 *      - parametre
 * gen :
 *      - variable globale utilisée (normalement aucune)
 * return: ce que la fonction retourne...
 */


Et les fichiers par 

<?
/*
 *   This file is part of PhpCompta.
 *
 *   PhpCompta is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published
by *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   PhpCompta is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with PhpCompta; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 
02111-1307  USA*/
/* $Revision$ */





reply via email to

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