//
// ************ CONNESSIONE AL DATABSE di FORUMLIBRI
include('/var/www/web157/html/incgen/config-vb.inc.php');
$db = mysql_connect($db_host, $db_user, $db_password);
if ($db == FALSE)
die ("Errore nella connessione. Contattare info@forumlibri.com");
mysql_select_db($db_name, $db)
or die ("Errore nella selezione del database. Contattare info@forumlibri.com");
// ricavo ID topic del PHPbb
$IDphpbb = $_GET[t];
$querytitlephpbb = "SELECT * FROM phpbb_topics WHERE topic_id = '$IDphpbb'";
$resulttitlephpbb = mysql_query($querytitlephpbb, $db);
$rowtitlephpbb = mysql_fetch_array($resulttitlephpbb);
//echo "IDPHPBB: $IDphpbb titoloPHPBB: $rowtitlephpbb[topic_title]
\n";
//ricavo userid dello stesso TOPIC da tabella VB
$querytitlevb = "SELECT * FROM fl_thread WHERE title = '$rowtitlephpbb[topic_title]'";
$resulttitlevb = mysql_query($querytitlevb, $db);
$rowtitlevb = mysql_fetch_array($resulttitlevb);
//echo "IDVB: $rowtitlevb[threadid] - titoloVB: $rowtitlevb[title]