";
require("banner_centrale.php");
echo "
";
if ($operazione=='leggi_scheda'){
$sql_scheda = "select * from reggina_schede where codice='$codice_scheda'";
$result_scheda = mysql_query($sql_scheda) or die ("Couldn't execute SQL SCHEDA");
while ($row =
mysql_fetch_array($result_scheda)) {
$id = $row["id"];
$giocatore = $row["giocatore"];
$anni = $row["anni"];
$ruolo = $row["ruolo"];
$scheda = $row["scheda"];
echo "
$giocatore
$anni - $ruolo
";
$sql_imgnews = "select * from reggina_usdimage where codice='$codice_scheda' order by posizione asc limit 1";
$result_imgnews = mysql_query($sql_imgnews) or die ("Couldn't execute SQL IMMAGINE");
while ($row =
mysql_fetch_array($result_imgnews)) {
$id = $row["id"];
$immagine = $row["immagine"];
$didascalia = $row["didascalia"];
echo "

";
}
echo "
$scheda
";
$sql_imgnews = "select * from reggina_usdimage where codice='$codice_scheda' and id<>'$id' order by posizione asc";
$result_imgnews = mysql_query($sql_imgnews) or die ("Couldn't execute SQL IMMAGINE");
if (mysql_num_rows($result_imgnews) <> 0) {
echo "
Galleria fotografica
";
while ($row =
mysql_fetch_array($result_imgnews)) {
$id = $row["id"];
$immagine = $row["immagine"];
$didascalia = $row["didascalia"];
echo "
";
}
}
}
} else {
include('config/paginazione.inf.php');
$query = "select * from reggina_schede where visibile='si' order by posizione asc";
$res = paging($query,10,5);
if (!$res[0]) {
echo "
Non vi sono schede
";
} else {
echo "
"
.$res[1];
echo "
";
while($dati = mysql_fetch_array($res[0]))
{
$id = $dati["id"];
$giocatore = $dati["giocatore"];
$scheda = $dati["scheda"];
$codice = $dati["codice"];
$scheda = str_replace($format,$no_format,$scheda);
$giocatore = strtoupper ($giocatore);
$scheda = TagliaStringa($scheda, 370);
echo "
$giocatore
";
$sql_imgnews = "select * from reggina_usdimage where codice='$codice' order by posizione asc limit 1";
$result_imgnews = mysql_query($sql_imgnews) or die ("Couldn't execute SQL IMMAGINE");
while ($row =
mysql_fetch_array($result_imgnews)) {
$id = $row["id"];
$immagine = $row["immagine"];
$didascalia = $row["didascalia"];
echo "

";
}
echo "
$scheda[leggi ancora]
";
}
}
}
echo "