private $user = 'username'; private $password = 'password'; private $host = 'localhost';
mettili come parametri al costruttore così
la puoi utilizzare + volte (invece di private metti protected)


Codice PHP:
public function select($tabella){
$this->tabella $tabella;
$this->result mysql_query("SELECT * FROM ".$this->tabella);
while(
$this->elementi mysql_fetch_array($this->result)){
$this->titolo $this->elementi['titolo'];
$this->testo $this->elementi['testo'];
echo 
"INIZIO CICLO WHILE
"
;
echo 
$this->titolo."
"
;
echo 
$this->testo."
"
;
echo 
"FINE CICLO WHILE

"
;
}
return 
true;

e se ti resttuisce + di un valore ?

fai ritornare un array (le classi devono astrarre)






PS
Usa il BB code per il codice