Codice: Seleziona tutto
<?php
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'config.' . $phpEx);
$connessione = mysql_connect("$dbhost", "$dbuser", "$dbpasswd");
if (!$connessione) {
echo "Impossibile connettersi al DB: " . mysql_error();
exit;
}
if (!mysql_select_db("$dbname")) {
echo "Impossibile selezioanare database: " . mysql_error();
exit;
}
?>
ora sicuramente non ho capito come fare se qualcuno puo aiutarmi gentilmente.