non capisco ma mi adeguo....
codice:
<?php//avvio la sessione
session_start();
if(!isset($_SESSION['ut_id']))
{
header('Location: ita/ita.html');
exit;
}
global $db_host, $db_nomedb, $db_utente, $db_password;
// Dati connessione al database
$db_host = '89.46.xxx'; // Host - solitamente localhost
$db_utente = 'Sql998xxx'; // Nome utente del Database
$db_password = '951556nxxx'; // Password del Database
$db_nomedb = 'Sql998xxx_1'; // Nome del Database
questo file config.php (estratto)
Poi dentro gli altri file apro la connessione con :
$db_host, $db_utente,etc etc
codice:
try{
$pdo =new PDO("mysql:host=$db_host;dbname=$db_nomedb", $db_utente, $db_password);
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
spiegami bene cosa intendi per class....magari con un esempio, se vuoi.
Grazie