je ne te comprends pas vraiment, as quoi sert il d'avoir nue classe si tu appel tes variables internes???
class conf_mysql{
var $host;
var $user;
var $pass;
var $link;
function conf_mysql($host,$user,$pass){
$this->host=$host;
...
$this->$pass=$pass;
$this->link=$mysql_connect($host,$user,$pass);
}
function afficher_table(){
...
}
}
--------------------------------------------------
---------------
require...
if($conf_mysql=new conf_mysql($host,$user,$pass)){
$conf_mysql->afficher_table();
}