[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”
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]