BotT 3 – Standings 2016

[insert_php]
$var1=3;$var2=2016;
require_once(“appoggio17/conn.inc.php”);
$sql = “select * from bott”.$var1.”_”.$var2.” ORDER BY totale DESC “;
$req = mysql_query($sql);
$res = mysql_num_rows($req);
if (mysql_errno())
die(“Errore n: “.mysql_errno().” Descr.: “.mysql_error().” “);
if ($res == 0)
die(“Dati non disponibili”);

//echo “


echo “

Battle of the Twins “.$_REQUEST[‘var2’].”

“;
echo”

“;

echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;

while($row = mysql_fetch_array($req))
{
$sql1 = “select * from iscritti_”.$var2.” where tab = “.$row[‘tabella’].” “;
$req1 = mysql_query($sql1);
$res1 = mysql_num_rows($req1);
if (mysql_errno())
die(“Errore n: “.mysql_errno().” Descr.: “.mysql_error().” “);

echo”

“;

while($row1 = mysql_fetch_array($req1))
{
if($row1[‘wild’]==1)
{
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
}
echo”

Vallelunga Varano Adria Magione Vallelunga Misano Tot scarto
#”. $row[‘tabella’].” “. $row[‘cognome’].” “;
}
else
{
echo “

#“. $row[‘tabella’].” “. $row[‘cognome’].” “;
}
}

echo “”. $row[‘nome’].”

“.$row[‘Tot1’].” “.$row[‘Tot2’].” “.$row[‘Tot3’].” “.$row[‘Tot4’].” “.$row[‘Tot5’].” “.$row[‘Tot6’].” “.$row[‘tot_tot’].” “.$row[‘scarto’].” “.$row[‘totale’].”

“;
[/insert_php]