";
require("banner_centrale.php");
echo "
";
if ($operazione=='visualizza'){
$sql_scheda = "select * from reggina_news where codice='$codice_rif'";
$result_scheda = mysql_query($sql_scheda) or die ("Couldn't execute SQL SCHEDA");
while ($row =
mysql_fetch_array($result_scheda)) {
$id = $row["id"];
$occhiello = $row["occhiello"];
$titolo = $row["titolo"];
$catenaccio = $row["catenaccio"];
$data = $row["data"];
$testo = $row["testo"];
$username = $row["username"];
$a10 = substr($data,6,2);
$a11 = substr($data,4,2);
$a12 = substr($data,0,4);
$testo = str_replace("
", "", $testo);
$testo = str_replace("
", "", $testo);
echo "
$occhiello
$titolo
$catenaccio
";
$sql_imgnews = "select * from reggina_usdimage where codice='$codice_rif' order by posizione asc";
$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 "
$a10/$a11/$a12 - $testo
di $username
";
}
} else {
include('config/paginazione.inf.php');
$query = "select * from reggina_news where categoria='ctg-20090831104903' and visibile='si' order by data desc";
$res = paging($query,30,5);
if (!$res[0]) {
echo "
Non vi sono interviste
";
} else {
echo "
"
.$res[1];
echo "
";
while($dati = mysql_fetch_array($res[0]))
{
$id = $dati["id"];
$titolo = $dati["titolo"];
$descrizione = $dati["descrizione"];
$codice = $dati["codice"];
$descrizione = str_replace($format,$no_format,$descrizione);
$titolo = strtoupper ($titolo);
echo "
$titolo
";
$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 "
$descrizione[leggi ancora]
";
}
}
}
echo "