<?php
/**
 *
 * Auteurs : Richard DEMONGEOT, Alan GARCIA (Durant le projet de PHP de notre année scolaire
 *                                           2004-2005)
 *
 * Date : 11/12/2006
 *
 * Derniere modification : 11/12/2006
 *
 * Synopsys : Fonctions spécifiques a MySQL
 *
**/

/*
Ce fichier est sous licence GPL V2.
Je vous demanderai toutefois de bien vouloir me faire parvenir (par mail ou par
un autre moyen à votre convenance) les modifications que vous êtes suceptibles
d'y ajouter, ainsi que leurs justification.

--------------------------------------------------------------------------------------

This program 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.

Thanks to send me any change you can wrote to this project and their reasons.

This program 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 this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

/* Fichier avec les fonctions relatives a MySQL */

class mysql extends cbd
{
    function 
cbd ()/* fait office de connexion */
    
{
        
$this->ORACLE=0;
        
$this->POSGRESQL=0;
        
$this->MYSQL=1;
        
$this->connexion=mysql_connect(HOTELOGINPASSWORD);
        
mysql_select_db(DATABASE$this->connexion);
        
$this->CaseSensitive=0;
        
$this->majuscule=1/* inutile et arbitraire */
    
}//CBD
    
    /* Fonction qui execute la requete SQL passée */
    
function Execute ($_req)
    {
        return 
mysql_query($_req);
    }
    
    
/* Fonction qui parse les résultats fetch_row */
    
function Fetch_row ($_resultat)
    {
        return 
mysql_fetch_row($_resultat);
    }
    
    
/* Fonction qui parse les résultats fetch_assoc */
    
function Fetch_assoc ($_resultat)
    {
        return 
mysql_fetch_assoc($_resultat);
    }
};

?>