Originalmente inviato da
codice interessato
<?php /*******************Giochi************************* **/
if($_GET['gio'] == 'gio'){
while ($array = mysql_fetch_array($sql_gen)){
print '<table border="1"><tr><td>
<a href="index.php?gen='.$array['genere'].'">'.$array['genere'].'</a><br>';
print '</td></tr></table>';
}
}
/********************-Giochi-*************************/ ?>
<?php /**************Multiplayer************************* ***/
if ($_GET['gen'] == 'Multiplayer'){
$i = 0;
while ($i < mysql_num_rows ($lista_tabelle)){
$tabella[$i] = mysql_tablename ($lista_tabelle, $i);
$exp = explode("_",$tabella[$i]);
if ($exp[1] == 'multi'){
print '<a href="index.php?gen='.$exp[0].'_'.$exp[1].'_'.$exp[2].'">'.$exp[2].'</a><br>';
}
$i++;
}
}
/******************-Multiplayer-************************/ ?>
<?php /*****************Singleplayer*******************/
if ($_GET['gen'] == 'Singleplayer'){
$i = 0;
while ($i < mysql_num_rows ($lista_tabelle)){
$tabella[$i] = mysql_tablename ($lista_tabelle, $i);
$exp = explode("_",$tabella[$i]);
if ($exp[1] == 'single'){
print '<a href="index.php?gen='.$exp[0].'_'.$exp[1].'_'.$exp[2].'">'.$exp[2].'</a><br>';
}
$i++;
}
}
/*****************-Singleplayer-********************/ ?>
</td>
<td width="400" height="300">
<? /*********************Estrazione dati*******************************/
for ($i=0;$i < mysql_num_rows ($lista_tabelle);$i++){
$tabella[$i] = mysql_tablename ($lista_tabelle, $i);
//$exp = explode("_",$tabella[$i]);
if ($_GET['gen'] == $tabella[$i]){
$get = $_GET['gen'];
$tabel = mysql_query("SELECT id,nome,descrizione,dimensione,download FROM ".$get."");
while ($tab = mysql_fetch_assoc($tabel)){
$nome=$tab['nome'];
$nom = "".$nome."";
$i=$tab['id'];
$id = "".$i."";
$des =$tab['descrizione'];
$desc[] = "".$des."";
$di=$tab['dimensione'];
$dim[] = "".$di."";
$down=$tab['download'];
$dow[] = "".$down."";
print '<table border="1">
<tr><td>'.$nome.'
<td width="50">'.$di.'</td>
</td></tr>
<tr><td width="200" height="35">'.$des.'
<td width="50">'.$down.'</td>
</td></tr>
</table>';
}
}
}
/*****************-Estrazione dati-***********************************/ ?>