Problème d'héritage php
Résolu
pyfeu
Messages postés
38
Date d'inscription
Statut
Membre
Dernière intervention
-
pyfeu -
pyfeu -
Re bonjour, voila encore un problème, je n'arrive pas à la résoudre :/
Notice: Undefined variable: host_db in C:\wamp\www\private_html\ProduitDAO.php on line 25
Notice: Undefined variable: user_login in C:\wamp\www\private_html\ProduitDAO.php on line 25
Notice: Undefined variable: user_password in C:\wamp\www\private_html\ProduitDAO.php on line 25
Notice: Undefined variable: database in C:\wamp\www\private_html\ProduitDAO.php on line 25
Voici le fichier ProduitDAO.php:
require_once('./Config.php');
require_once('./database/MySQLConnection.php');
........
public function __construct () {
echo("ca passe par construcpdao");
$connexion = MySQLConnection::getInstance($host_db, $user_login, $user_password, $database);
if(!$connexion->isConnected()){
echo("ca passe par getInstance PPPPPP ");
$connexion->connect();}
}
/**
*
*/
private function __clone () {}
/**
*
*/
public static function getInstance () {
if (!(self::$instance instanceof self))
self::$instance = new self();
return self::$instance;
}
et le config.php contient pourtant :
$user_login='e_08_xxxxx';
$user_password='7e_08_xxxxx';
$database='e_08_xxxxx';
$host_db='localhost';
je comprends pas du tout, pourtant mais 2 fichiers sont dans le mm dossier ...
Notice: Undefined variable: host_db in C:\wamp\www\private_html\ProduitDAO.php on line 25
Notice: Undefined variable: user_login in C:\wamp\www\private_html\ProduitDAO.php on line 25
Notice: Undefined variable: user_password in C:\wamp\www\private_html\ProduitDAO.php on line 25
Notice: Undefined variable: database in C:\wamp\www\private_html\ProduitDAO.php on line 25
Voici le fichier ProduitDAO.php:
require_once('./Config.php');
require_once('./database/MySQLConnection.php');
........
public function __construct () {
echo("ca passe par construcpdao");
$connexion = MySQLConnection::getInstance($host_db, $user_login, $user_password, $database);
if(!$connexion->isConnected()){
echo("ca passe par getInstance PPPPPP ");
$connexion->connect();}
}
/**
*
*/
private function __clone () {}
/**
*
*/
public static function getInstance () {
if (!(self::$instance instanceof self))
self::$instance = new self();
return self::$instance;
}
et le config.php contient pourtant :
$user_login='e_08_xxxxx';
$user_password='7e_08_xxxxx';
$database='e_08_xxxxx';
$host_db='localhost';
je comprends pas du tout, pourtant mais 2 fichiers sont dans le mm dossier ...
A voir également:
- Problème d'héritage php
- Easy php - Télécharger - Divers Web & Internet
- Maison héritage canapé avis - Forum Consommation & Internet
- Arnaque aux canape. - Forum Vos droits sur internet
- Arnaque canapé ✓ - Forum Vos droits sur internet
- Expert php pinterest - Télécharger - Langages