$banner='';
include('top.php'); include('admin/config.php'); ?>
| Home »
News »
$sql="select * from ".$news." where (id_news='$cod')";
if(!($result=mysql_query($sql,$conn))) {
echo ("Error selecting data from News table.\n");
} else {
while ($datarecord=mysql_fetch_row ($result)) {
$argomento=$datarecord[10];
echo stripslashes($datarecord[2])."
|
|
|
|
\n";
if ($datarecord[7]=="nofoto.gif") {
} else {
if ($datarecord[13]=='sx') {
echo " \n";
}
elseif ($datarecord[13]=='dx') {
echo " \n";
}
elseif ($datarecord[13]=='top') {
echo " \n";
}
}
echo stripslashes(str_replace("\n", " ", $datarecord[4]))." \n";
}
}
?>
|
$sql="select * from ".$news." where (argomento='$argomento' and argomento!='varie' and argomento!='' )";
if(!($result=mysql_query($sql,$conn))) {
echo ("Error selecting data from News table.\n");
} else {
while ($datarecord=mysql_fetch_row ($result)) {
$id++;
}}
mysql_close($conn);
if ($id>1)
{?>
DALL'ARCHIVIO di Monticchiello.it |
include('admin/config.php');
$sql="select * from ".$news." where (lingua = 'it' and argomento = '$argomento') order by id_news desc";if(!($result=mysql_query($sql,$conn))) { echo ("Error selecting data from NEWS table.\n"); }else{
while ($datarecord=mysql_fetch_row ($result)) {
//if (time()<$datarecord[8]) {continue;}
//if (time()>$datarecord[9]) {continue;}
$data=date("d/m/Y G.i:s",$datarecord[1]);
$ff='ff';
if ($datarecord[0]==$cod) {$ff='ff1';}
echo " \n";
}
}
mysql_close($conn);?>
|
} ?>
|
|
|
|
|
|
|
|
|